Class for setting search path for locating dynamic libraries, scripts etc.
More...
#include <Environment.h>
Class for setting search path for locating dynamic libraries, scripts etc.
Environment has three paths, of which user should use: RESOURCE_PATH and RUNTIME_PATH
RESOURCE_PATH - lists directories where AGX can find license files, kernel files, configuration files and scripts. BINARY_PATH - lists directories where AGX should search for collider plugins, kernel binaries etc.
agxIO::FilePathContainer & getFilePath(Type t=RESOURCE_PATH)
@ RUNTIME_PATH
Specifies paths for where to search for plugin's/runtime libraries.
@ RESOURCE_PATH
Specifies paths for where to search for resource files such as scripts, images, models etc.
static Environment * instance(void)
void addFilePath(const agx::String &path)
Adds a list of paths to the end previous one.
Definition at line 41 of file agxIO/Environment.h.
◆ Type
Specifies which path to access.
| Enumerator |
|---|
| RESOURCE_PATH | Specifies paths for where to search for resource files such as scripts, images, models etc.
|
| RUNTIME_PATH | Specifies paths for where to search for plugin's/runtime libraries.
|
| COMPONENT_DEV_PATH | Specifies paths for where to search for component definitions and source code (only for developers)
|
| NUM_TYPES | |
Definition at line 46 of file agxIO/Environment.h.
◆ Environment()
| agxIO::Environment::Environment |
( |
| ) |
|
Constructor that will initialize the FilePathContainer with data:
RESOURCE_PATH: Paths from the environment variable AGX_FILE_PATH RUNTIME_PATH: Paths from the environment variable PATH/LD_LIBRARY_PATH
◆ getFilePath() [1/2]
- Returns
- reference to the FilePathContainer for finding files given the current setup filepath:s.
◆ getFilePath() [2/2]
- Returns
- a const reference to the FilePathContainer for finding files given the current setup filepath:s.
◆ instance()
| static Environment * agxIO::Environment::instance |
( |
void |
| ) |
|
|
static |
◆ shutdown()
| void agxIO::Environment::shutdown |
( |
| ) |
|
|
overrideprotectedvirtual |
Implement this method to cleanup your Singleton class.
Implements agx::Singleton.
◆ m_filePathContainer
◆ s_instance
The documentation for this class was generated from the following file: