Choreonoid  1.1
FileUtil.h
[詳解]
1 
6 #ifndef CNOID_UTIL_FILE_UTIL_H_INCLUDED
7 #define CNOID_UTIL_FILE_UTIL_H_INCLUDED
8 
9 #include <boost/filesystem.hpp>
10 #include <string>
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
16  const boost::filesystem::path& path,
17  boost::filesystem::path& out_compact);
18 
20  const boost::filesystem::path& directory,
21  const boost::filesystem::path& path,
22  boost::filesystem::path& out_subdirectory);
23 
25  const boost::filesystem::path& from,
26  const boost::filesystem::path& to,
27  boost::filesystem::path& out_relativePath);
28 
29 //#ifdef _WIN32
30 #if 0
31  CNOID_EXPORT const std::string toActualPathName(const std::string& pathName);
32 #else
33  inline const std::string& toActualPathName(const std::string& pathName) {
34  return pathName;
35  }
36 #endif
37 
38 }
39 
40 #endif
void makePathCompact(const filesystem::path &path, filesystem::path &out_compact)
Definition: FileUtil.cpp:19
Definition: EasyScanner.h:16
const std::string & toActualPathName(const std::string &pathName)
Definition: FileUtil.h:33
#define CNOID_EXPORT
Definition: Util/exportdecl.h:13
bool findRelativePath(const filesystem::path &from_, const filesystem::path &to, filesystem::path &out_relativePath)
Definition: FileUtil.cpp:69
bool findSubDirectory(const filesystem::path &directory, const filesystem::path &path, filesystem::path &out_subdirectory)
Definition: FileUtil.cpp:33