17 #ifndef AGXIO_FILEPATHCONTAINER_H
18 #define AGXIO_FILEPATHCONTAINER_H
21 # pragma warning(push)
22 # pragma warning(disable:4786)
64 bool clearPrevious =
true,
128 void removeDuplicates();
138 # pragma warning(pop)
bool setFromEnvironmentVariable(const agx::String &env, bool clearPrevious=true)
Set the file path found in given environment variable.
void pushfrontPath(const agx::String &path)
Adds a filepath to the beginning of the list.
~FilePathContainer()
Destructor.
void removeFilePath(const agx::String &path)
Removes a list of paths.
void clear()
Clear all added path.
agx::String find(const agx::String &filename) const
First it will try to locate 'filename' in one of the specified directories.
void setFilePathList(const agx::String &paths, bool clearPrevious=true, const agx::String &delimiter=agxIO::FileSystem::PATH_DELIMITER)
Set the file path using a single string delimited with given delimiter.
FilePathContainer()
Constructor.
agx::List< agx::String > PathList
void setFilePath(const agx::String &path)
Set the file path directly.
void pushbackPath(const agx::String &path)
Adds a filepath to the end of the list.
const PathList & getFilePathList() const
void addFilePath(const agx::String &path)
Adds a list of paths to the end previous one.
PathList & getFilePathList()
FilePathContainer(const agx::String &env)
Constructor - set the file path found in given environment variable.
The agxIO namespace contains classes for reading, writing and finding files.
static AGXCORE_EXPORT const char * PATH_DELIMITER
Separator between paths in a list of paths, on unix: ":", on windows ";".