44#if (CISST_OS == CISST_WINDOWS)
85 void ConfigureTokenizer(
void);
89 static std::string FromNative(
const std::string & nativePath);
98#if (CISST_OS == CISST_WINDOWS)
121 void Set(
const std::string & path);
124 void Add(
const std::string & path,
bool head =
HEAD);
141 std::string
Find(
const std::string & filename,
short mode =
READ)
const;
153 const std::string & subdirectory,
154 short mode =
READ)
const;
157 bool Remove(
const std::string & directory);
160 bool Has(
const std::string & directory)
const;
163 void ToStream(std::ostream & outputStream)
const override;
184 static bool Exists(
const std::string & fullPath,
short more =
READ);
191 const std::string & fullPathNew);
205 inline static std::string
Executable(
const std::string & name) {
#define CISST_SHARED_LIBRARY_SUFFIX
Definition cisstConfig.h:37
#define CISST_EXECUTABLE_SUFFIX
Definition cisstConfig.h:40
#define CISST_SHARED_LIBRARY_PREFIX
Definition cisstConfig.h:36
Base class for high level objects.
Definition cmnGenericObject.h:53
Search path to find a file. This class contains a list of directories used to locate a file.
Definition cmnPath.h:66
void ToStream(std::ostream &outputStream) const override
static const std::string & DirectorySeparator(void)
void Set(const std::string &path)
std::string FindWithSubdirectory(const std::string &filename, const std::string &subdirectory, short mode=READ) const
static bool DeleteFile(const std::string &fullPath)
std::string Find(const std::string &filename, short mode=READ) const
ContainerType::iterator iterator
Definition cmnPath.h:75
static bool GetCisstShare(std::string &result)
@ HEAD
Definition cmnPath.h:93
@ TAIL
Definition cmnPath.h:94
static std::string GetWorkingDirectory(void)
bool AddRelativeToCisstShare(const std::string &relativePath, bool head=HEAD)
@ EXIST
Definition cmnPath.h:99
@ WRITE
Definition cmnPath.h:100
@ EXECUTE
Definition cmnPath.h:102
@ READ
Definition cmnPath.h:101
bool AddFromEnvironment(const std::string &variableName, bool head=HEAD)
void Add(const std::string &path, bool head=HEAD)
bool Remove(const std::string &directory)
ContainerType::const_iterator const_iterator
Definition cmnPath.h:76
virtual ~cmnPath(void)
Definition cmnPath.h:118
std::list< std::string > ContainerType
Definition cmnPath.h:71
static std::string Executable(const std::string &name)
Definition cmnPath.h:205
cmnPath(const std::string &path)
bool AddRelativeToCisstRoot(const std::string &relativePath, bool head=HEAD)
bool Has(const std::string &directory) const
static bool Exists(const std::string &fullPath, short more=READ)
static bool RenameFile(const std::string &fullPathOld, const std::string &fullPathNew)
static std::string SharedLibrary(const std::string &name)
Definition cmnPath.h:197
static bool GetCisstRoot(std::string &result)
Definition cmnTokenizer.h:66
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition cmnClassRegisterMacros.h:199
const int CMN_NO_DYNAMIC_CREATION
Definition cmnClassRegisterMacros.h:325
Macros to export the symbols of cisstCommon (in a Dll).
#define CISST_EXPORT
Definition cmnExportMacros.h:50
Defines cmnGenericObject.
#define CMN_LOG_ALLOW_DEFAULT
Definition cmnLogLoD.h:76
Portability across compilers and operating systems tools.
Break strings into tokens.