Updates to osgDB::Archive, and IVE plugin to support usage via the Archive.

This commit is contained in:
Robert Osfield
2004-10-28 12:16:47 +00:00
parent e97364899b
commit 90e5586777
3 changed files with 129 additions and 19 deletions

View File

@@ -44,10 +44,10 @@ class OSGDB_EXPORT Archive : public ReaderWriter
};
/** open the archive.*/
virtual void create(const std::string& filename, unsigned int indexBlockSize=4096);
virtual bool create(const std::string& filename, unsigned int indexBlockSize=4096);
/** open the archive.*/
virtual void open(const std::string& filename, Status status);
virtual bool open(const std::string& filename, Status status);
/** close the archive.*/
virtual void close();
@@ -87,7 +87,7 @@ class OSGDB_EXPORT Archive : public ReaderWriter
inline pos_type getPositionNextIndexBlock() const { return _filePositionNextIndexBlock; }
void read(std::istream& in);
static IndexBlock* read(std::istream& in);
bool getFileReferences(FileNamePositionMap& indexMap);
@@ -124,8 +124,6 @@ class OSGDB_EXPORT Archive : public ReaderWriter
typedef std::list< osg::ref_ptr<IndexBlock> > IndexBlockList;
void readIndexBlocks();
void writeIndexBlocks();
bool addFileReference(pos_type position, const std::string& fileName);