My Project
D:/source/c++/Programme/sally/sally/sallyAPI/PathHelper.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include <string>
00031 #include "StringHelper.h"
00032 
00033 namespace SallyAPI
00034 {
00035         namespace String
00036         {
00045 
00046                 class DLL_API_SALLY PathHelper
00047                 {
00048                 private:
00049                         PathHelper();
00050                         ~PathHelper();
00051                 public:
00052 
00053                         static std::string              CorrectFileName(const std::string& str);
00054                         static std::string              CorrectPath(const std::string& sPath);
00055                         static std::string              GetDirectoryFromPath(const std::string& sFile);
00056                         static std::string              GetUpperDirectory(const std::string& sFile);
00057                         static std::string              GetFileFromPath(const std::string& str, const std::string sep = "\\");
00058                         static void                             CreateRecursiveDirectory(const std::string& str);
00059                         static std::string              GetShortFilename(const std::string& filename);
00060                 };
00061         }
00062 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines