- class Visitor
- {
- public:
- virtual void visit(const char* name) = 0;
- };
-
- typedef CustomArchiveVisitor VisitorFunc;
-
- enum EMode
- {
- eFiles = 0x01,
- eDirectories = 0x02,
- eFilesAndDirectories = 0x03,
- };
-
- /// \brief Destroys the archive object.
- /// Any unreleased file object associated with the archive remains valid. */
- virtual void release() = 0;
- /// \brief Returns a new object associated with the file identified by \p name, or 0 if the file cannot be opened.
- /// Name comparisons are case-insensitive.
- virtual ArchiveFile* openFile(const char* name) = 0;
- /// \brief Returns a new object associated with the file identified by \p name, or 0 if the file cannot be opened.
- /// Name comparisons are case-insensitive.
- virtual ArchiveTextFile* openTextFile(const char* name) = 0;
- /// Returns true if the file identified by \p name can be opened.
- /// Name comparisons are case-insensitive.
- virtual bool containsFile(const char* name) = 0;
- /// \brief Performs a depth-first traversal of the archive tree starting at \p root.
- /// Traverses the entire tree if \p root is "".
- /// When a file is encountered, calls \c visitor.file passing the file name.
- /// When a directory is encountered, calls \c visitor.directory passing the directory name.
- /// Skips the directory if \c visitor.directory returned true.
- /// Root comparisons are case-insensitive.
- /// Names are mixed-case.
- virtual void forEachFile(VisitorFunc visitor, const char* root) = 0;
+class Visitor
+{
+public:
+virtual void visit( const char* name ) = 0;
+};
+
+typedef CustomArchiveVisitor VisitorFunc;
+
+enum EMode
+{
+ eFiles = 0x01,
+ eDirectories = 0x02,
+ eFilesAndDirectories = 0x03,
+};
+
+/// \brief Destroys the archive object.
+/// Any unreleased file object associated with the archive remains valid. */
+virtual void release() = 0;
+/// \brief Returns a new object associated with the file identified by \p name, or 0 if the file cannot be opened.
+/// Name comparisons are case-insensitive.
+virtual ArchiveFile* openFile( const char* name ) = 0;
+/// \brief Returns a new object associated with the file identified by \p name, or 0 if the file cannot be opened.
+/// Name comparisons are case-insensitive.
+virtual ArchiveTextFile* openTextFile( const char* name ) = 0;
+/// Returns true if the file identified by \p name can be opened.
+/// Name comparisons are case-insensitive.
+virtual bool containsFile( const char* name ) = 0;
+/// \brief Performs a depth-first traversal of the archive tree starting at \p root.
+/// Traverses the entire tree if \p root is "".
+/// When a file is encountered, calls \c visitor.file passing the file name.
+/// When a directory is encountered, calls \c visitor.directory passing the directory name.
+/// Skips the directory if \c visitor.directory returned true.
+/// Root comparisons are case-insensitive.
+/// Names are mixed-case.
+virtual void forEachFile( VisitorFunc visitor, const char* root ) = 0;