3
@author Shin'ichiro Nakaoka
6
#ifndef CNOID_UTIL_FILE_UTIL_H_INCLUDED
7
#define CNOID_UTIL_FILE_UTIL_H_INCLUDED
9
#include <boost/filesystem.hpp>
11
#include "exportdecl.h"
15
CNOID_EXPORT void makePathCompact(
16
const boost::filesystem::path& path,
17
boost::filesystem::path& out_compact);
19
CNOID_EXPORT bool findSubDirectory(
20
const boost::filesystem::path& directory,
21
const boost::filesystem::path& path,
22
boost::filesystem::path& out_subdirectory);
24
CNOID_EXPORT bool findRelativePath(
25
const boost::filesystem::path& from,
26
const boost::filesystem::path& to,
27
boost::filesystem::path& out_relativePath);
31
CNOID_EXPORT const std::string toActualPathName(const std::string& pathName);
33
inline const std::string& toActualPathName(const std::string& pathName) {