~choreonoid/choreonoid/debian

« back to all changes in this revision

Viewing changes to src/Util/FileUtil.h

  • Committer: Thomas Moulard
  • Date: 2012-10-23 12:43:24 UTC
  • Revision ID: git-v1:351cf736ad49bc7a9a7b9767dee760a013517a5d
Tags: upstream/1.1.0
ImportedĀ UpstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
  @file
 
3
  @author Shin'ichiro Nakaoka
 
4
*/
 
5
 
 
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
 
 
15
    CNOID_EXPORT void makePathCompact(
 
16
        const boost::filesystem::path& path,
 
17
        boost::filesystem::path& out_compact);
 
18
 
 
19
    CNOID_EXPORT bool findSubDirectory(
 
20
        const boost::filesystem::path& directory,
 
21
        const boost::filesystem::path& path,
 
22
        boost::filesystem::path& out_subdirectory);
 
23
 
 
24
    CNOID_EXPORT bool findRelativePath(
 
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