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 
00035     const std::string& pathDelimiter();
00036 
00037 
00050     const std::vector<std::string>& pathDelimiters();
00051 
00052 
00063     const std::string& extensionDelimiter();
00064 
00065 
00077     bool
00078     isDirectory(const std::string& path);
00079     
00080 
00081     std::string
00082     joinPath(const std::string& part0, const std::string& part1);
00083 
00084 
00085     std::vector<std::string>
00086     listDirectory(const std::string& directoryName, bool fullPath);
00087 
00088 
00118     std::pair<std::string, std::string>
00119     splitPath(const std::string& path);
00120     
00121   } // namespace portability
00122   
00123 } // namespace dlr
00124 
00125 #endif /* ifndef _DLRPORTABILITY_FILESYSTEM_H_ */

Generated on Wed Nov 25 00:03:49 2009 for dlrPortability Utility Library by  doxygen 1.5.8