46 #if (CISST_OS == CISST_WINDOWS)
87 void ConfigureTokenizer(
void);
91 static std::string FromNative(
const std::string & nativePath);
100 #if (CISST_OS == CISST_WINDOWS)
117 cmnPath(
const std::string & path);
123 void Set(
const std::string & path);
126 void Add(
const std::string & path,
bool head = HEAD);
129 bool AddFromEnvironment(
const std::string & variableName,
bool head = HEAD);
134 bool AddRelativeToCisstRoot(
const std::string & relativePath,
bool head = HEAD);
138 bool AddRelativeToCisstShare(
const std::string & relativePath,
bool head = HEAD);
143 std::string Find(
const std::string & filename,
short mode = READ)
const;
154 std::string FindWithSubdirectory(
const std::string & filename,
155 const std::string & subdirectory,
156 short mode = READ)
const;
159 bool Remove(
const std::string & directory);
162 bool Has(
const std::string & directory)
const;
165 void ToStream(std::ostream & outputStream)
const;
171 static const std::string & DirectorySeparator(
void);
174 static std::string GetWorkingDirectory(
void);
177 static bool GetCisstRoot(std::string & result);
181 static bool GetCisstShare(std::string & result);
186 static bool Exists(
const std::string & fullPath,
short more = READ);
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
ContainerType::iterator iterator
Definition: cmnPath.h:77
Portability across compilers and operating systems tools.
Search path to find a file. This class contains a list of directories used to locate a file...
Definition: cmnPath.h:68
Base class for high level objects.
Definition: cmnGenericObject.h:51
Definition: cmnTokenizer.h:65
virtual ~cmnPath(void)
Definition: cmnPath.h:120
Macros to export the symbols of cisstCommon (in a Dll).
virtual void ToStream(std::ostream &outputStream) const
Defines cmnGenericObject.
Break strings into tokens.
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
std::list< std::string > ContainerType
Definition: cmnPath.h:73
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
ContainerType::const_iterator const_iterator
Definition: cmnPath.h:78
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76