|
virtual void | addApplicationDir (const QString &subFolder=QString()) |
| Adds the application installation directory, or if specified a sub-directory.
|
|
virtual void | addCtkModuleLoadPath () |
| Adds the directories denoted by the environment variable CTK_MODULE_LOAD_PATH.
|
|
virtual void | addCurrentDir (const QString &subFolder=QString()) |
| Adds the current working directory, or if specified a sub-directory.
|
|
virtual void | addHomeDir (const QString &subFolder=QString()) |
| Adds the users home directory, or if specified a sub-directory.
|
|
virtual void | clear () |
| Clears the current list of directories.
|
|
| ctkCmdLineModuleDefaultPathBuilder () |
|
virtual QStringList | getDirectoryList () const |
| Returns the QStringList containing directories.
|
|
virtual void | setStrictMode (const bool &strict) |
| Sets strict mode which checks that all directories already exist.
|
|
virtual bool | strictMode () const |
| Returns the strict mode flag.
|
|
| ~ctkCmdLineModuleDefaultPathBuilder () |
|
Builds up a list of directory paths to search for command line modules.
- Author
- m.cla.nosp@m.rkso.nosp@m.n@ucl.nosp@m..ac..nosp@m.uk
Simple class to enable the user to easily add various directories to a list of directories. You create this object, add a load of directories by repeatedly calling add..() functions, and then call getDirectoryList() to get the final StringList of directory locations.
The choices are:
1. The directory or list of directories defined by the CTK_MODULE_LOAD_PATH environment variable.
Uses usual PATH semantics such as colon separator on *nix systems and semi-colon on Windows.
2. The directory defined by the users HOME directory, or any sub-directory under this.
3. The directory defined by the current working directory, or any sub-directory under this.
4. The directory defined by the application installation directory or any sub-directory under this.
A strictMode flag exists to decide if this class only returns directories that already exist.
Definition at line 52 of file ctkCmdLineModuleDefaultPathBuilder.h.