You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Core/GameEngine/Include/Common/ArchiveFile.h
+33-20Lines changed: 33 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,13 @@
38
38
classFile;
39
39
40
40
/**
41
-
* An archive file is itself a collection of sub files. Each file inside the archive file
42
-
* has a unique name by which it can be accessed. The ArchiveFile object class is the
43
-
* runtime interface to the mix file and the sub files. Each file inside the mix
44
-
* file can be accessed by the openFile().
45
-
*
46
-
* ArchiveFile interfaces can be created by the TheArchiveFileSystem object.
47
-
*/
41
+
* An archive file is itself a collection of sub files. Each file inside the archive file
42
+
* has a unique name by which it can be accessed. The ArchiveFile object class is the
43
+
* runtime interface to the mix file and the sub files. Each file inside the mix
44
+
* file can be accessed by the openFile().
45
+
*
46
+
* ArchiveFile interfaces can be created by the TheArchiveFileSystem object.
47
+
*/
48
48
//===============================
49
49
50
50
classArchiveFile
@@ -53,24 +53,37 @@ class ArchiveFile
53
53
ArchiveFile();
54
54
virtual~ArchiveFile();
55
55
56
-
virtual Bool getFileInfo( const AsciiString& filename, FileInfo *fileInfo) const = 0; ///< fill in the fileInfo struct with info about the file requested.
57
-
virtual File* openFile( const Char *filename, Int access = 0) = 0; ///< Open the specified file within the archive file
58
-
virtualvoidcloseAllFiles( void ) = 0; ///< Close all file opened in this archive file
59
-
virtual AsciiString getName( void ) = 0; ///< Returns the name of the archive file
60
-
virtual AsciiString getPath( void ) = 0; ///< Returns full path and name of archive file
61
-
virtualvoidsetSearchPriority( Int new_priority ) = 0; ///< Set this archive file's search priority
62
-
virtualvoidclose( void ) = 0; ///< Close this archive file
63
-
voidattachFile(File *file);
56
+
virtual Bool getFileInfo(const AsciiString &filename, FileInfo *fileInfo) const = 0; ///< fill in the fileInfo struct with
57
+
///< info about the file requested.
58
+
virtual File *openFile(const Char *filename, Int access = 0) = 0; ///< Open the specified file within the archive file
59
+
virtualvoidcloseAllFiles(void) = 0; ///< Close all file opened in this archive file
60
+
virtual AsciiString getName(void) = 0; ///< Returns the name of the archive file
61
+
virtual AsciiString getPath(void) = 0; ///< Returns full path and name of archive file
62
+
virtualvoidsetSearchPriority(Int new_priority) = 0; ///< Set this archive file's search priority
63
+
virtualvoidclose(void) = 0; ///< Close this archive file
virtualvoidloadIntoDirectoryTree(const ArchiveFile *archiveFile, const AsciiString& archiveFilename, Bool overwrite = FALSE ); ///< load the archive file's header information and apply it to the global archive directory tree.
181
+
virtualvoidloadIntoDirectoryTree(
182
+
const ArchiveFile *archiveFile,
183
+
const AsciiString &archiveFilename,
184
+
Bool overwrite = FALSE); ///< load the archive file's header information and apply it to the global archive directory
0 commit comments