netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/Lib/Util FileSystem.hpp


From: Matthias Braun
Subject: [netPanzer-CVS] netpanzer/src/Lib/Util FileSystem.hpp
Date: Mon, 24 Nov 2003 04:11:05 -0500

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Matthias Braun <address@hidden> 03/11/24 04:11:04

Modified files:
        src/Lib/Util   : FileSystem.hpp 

Log message:
        forgot to commit my additions to FileSystem

Patches:
Index: netpanzer/src/Lib/Util/FileSystem.hpp
diff -u netpanzer/src/Lib/Util/FileSystem.hpp:1.1 
netpanzer/src/Lib/Util/FileSystem.hpp:1.2
--- netpanzer/src/Lib/Util/FileSystem.hpp:1.1   Sat Nov 22 10:43:19 2003
+++ netpanzer/src/Lib/Util/FileSystem.hpp       Mon Nov 24 04:11:04 2003
@@ -124,6 +124,10 @@
 
 //---------------------------------------------------------------------------
 
+/** This class is a c++ wrapper for the physfs library. See physfs
+ * documentation for details about the functions here. Most function names are
+ * exactly the same as in physfs
+ */
 class FileSystem
 {
 public:
@@ -136,13 +140,21 @@
 
     static const char* getRealDir(const char* filename);
     static std::string getRealName(const char* filename);
-    // remember to call freeLisT
+    /// remember to call freeLisT
     static char** enumerateFiles(const char* directory);
+    static char** enumerateFiles(const std::string& directory)
+    { return enumerateFiles(directory.c_str()); }
     static void freeList(char** list);
 
     static ReadFile* openRead(const char* filename);
+    static ReadFile* openRead(const std::string& filename)
+    { return openRead(filename.c_str()); }
     static WriteFile* openAppend(const char* filename);
+    static WriteFile* openAppend(const std::string& filename)
+    { return openAppend(filename.c_str()); }
     static WriteFile* openWrite(const char* filename);
+    static WriteFile* openWrite(const std::string& filename)
+    { return openWrite(filename.c_str()); }
 
     static void mkdir(const char* dirname);
     static void remove(const char* filename);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]