From 2b8140e12540f5c999cf6aacd9defbcc2b2b8fc6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 28 Oct 2004 14:27:41 +0000 Subject: [PATCH] Added support for listing contents of archive --- examples/osgarchive/osgarchive.cpp | 10 +++++++++- include/osgDB/Archive | 6 ++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/examples/osgarchive/osgarchive.cpp b/examples/osgarchive/osgarchive.cpp index 92ec00de8..2c4fa6996 100644 --- a/examples/osgarchive/osgarchive.cpp +++ b/examples/osgarchive/osgarchive.cpp @@ -140,7 +140,15 @@ int main( int argc, char **argv ) if (list) { - std::cout<<"Cannot list at present."<first<<"\t"<second< FileNamePositionMap; + + const FileNamePositionMap& getFileNamePositionMap() const { return _indexMap; } virtual ReadResult readObject(const std::string& fileName,const Options* options=NULL); virtual ReadResult readImage(const std::string& fileName,const Options* options=NULL); @@ -69,8 +73,6 @@ class OSGDB_EXPORT Archive : public ReaderWriter protected: - typedef std::istream::pos_type pos_type; - typedef std::map FileNamePositionMap; class IndexBlock : public osg::Referenced {