summaryrefslogtreecommitdiffstats
path: root/o3d/import/cross/iarchive_generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/import/cross/iarchive_generator.h')
-rw-r--r--o3d/import/cross/iarchive_generator.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/o3d/import/cross/iarchive_generator.h b/o3d/import/cross/iarchive_generator.h
index 4f662da..04f3a46 100644
--- a/o3d/import/cross/iarchive_generator.h
+++ b/o3d/import/cross/iarchive_generator.h
@@ -48,13 +48,16 @@ class IArchiveGenerator {
// Call AddFile() for each file entry, followed by calls to AddFileBytes()
// for the file's data
- virtual void AddFile(const String& file_name,
+ virtual bool AddFile(const String& file_name,
size_t file_size) = 0;
// Call with the file's data (after calling AddFile)
// may be called one time will all the file's data, or multiple times
// until all the data is provided
virtual int AddFileBytes(MemoryReadStream* stream, size_t n) = 0;
+
+ // Must be called to finish the archiving operation.
+ virtual void Close(bool success) = 0;
};
} // namespace o3d