filesystem.h

Go to the documentation of this file.
00001 
00016 #ifndef _DLRPORTABILITY_FILESYSTEM_H_
00017 #define _DLRPORTABILITY_FILESYSTEM_H_
00018 
00019 #include <string>
00020 #include <vector>
00021 
00022 // Anonymous namespace for stuff local to this file.
00023 namespace dlr {
00024 
00025   namespace portability {
00026     
00027     const std::string& pathDelimiter();
00028   
00029 
00030     const std::string& extensionDelimiter();
00031 
00032 
00044     bool
00045     isDirectory(const std::string& path);
00046     
00047 
00048     std::string
00049     joinPath(const std::string& part0, const std::string& part1);
00050 
00051 
00052     std::vector<std::string>
00053     listDirectory(const std::string& directoryName, bool fullPath);
00054 
00055 
00085     std::pair<std::string, std::string>
00086     splitPath(const std::string& path);
00087     
00088   } // namespace portability
00089   
00090 } // namespace dlr
00091 
00092 #endif /* ifndef _DLRPORTABILITY_FILESYSTEM_H_ */

Generated on Mon Jul 9 20:34:02 2007 for dlrLibs Utility Libraries by  doxygen 1.5.2