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.
Definition at line 42 of file Environment.h.
◆ Priority
Specifies the ranges of the priority which can be assigned to a singleton at the time of creation.
| Enumerator |
|---|
| HIGHEST_PRIORITY | The highest priority that can be given to a singleton.
|
| LOWEST_PRIORITY | The lowest priority that can be given to a singleton.
|
| DEFAULT_PRIORITY | The default priority given to a singleton.
|
Definition at line 35 of file Singleton.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 47 of file 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
◆ _shutdown()
| void agx::Singleton::_shutdown |
( |
| ) |
|
|
protectedinherited |
◆ getClassName()
| virtual std::string agx::Singleton::getClassName |
( |
| ) |
const |
|
pure virtualinherited |
◆ 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.
◆ getPriority()
| int agx::Singleton::getPriority |
( |
| ) |
const |
|
inherited |
Return the shutdown priority of the singleton instance.
◆ instance()
◆ shutdown()
| void agxIO::Environment::shutdown |
( |
| ) |
|
|
overrideprotectedvirtual |
Implement this method to cleanup your Singleton class.
Reimplemented from agx::Singleton.
◆ m_filePathContainer
◆ s_instance
The documentation for this class was generated from the following file: