Query and set certain properties of the CppMicroServices library.
More...
|
typedef std::vector< std::string > | PathList |
|
Query and set certain properties of the CppMicroServices library.
The following environment variables influence the runtime behavior of the CppMicroServices library:
- US_DISABLE_AUTOLOADING If set, auto-loading of modules is disabled.
- US_AUTOLOAD_PATHS A ':' (Unix) or ';' (Windows) separated list of paths from which modules should be auto-loaded.
- Deprecated:
- Use FrameworkFactory::NewFramework(std::map<std::string, std::string> configuration) to configure the framework.
ModuleSettings::ModuleSettings |
( |
| ) |
|
ModuleSettings::~ModuleSettings |
( |
| ) |
|
void ModuleSettings::AddAutoLoadPath |
( |
const std::string & |
path | ) |
|
Add a path in the file-system to the list of paths from which modules will be auto-loaded.
- Parameters
-
path | The additional absolute auto-load path in the file-system. |
static std::string ModuleSettings::CURRENT_MODULE_PATH |
( |
| ) |
|
|
static |
Returns a special string which can be used as an argument for a AddAutoLoadPath() call.
When a module is loaded and this string has been added as a path to the list of auto-load paths the CppMicroServices library will auto-load all modules from the currently being loaded module's auto-load directory.
- Returns
- A string to be used in AddAutoLoadPath().
- See also
- MicroServices_AutoLoading
-
US_INITIALIZE_MODULE
PathList ModuleSettings::GetAutoLoadPaths |
( |
| ) |
|
- Returns
- A list of paths in the file-system from which modules will be auto-loaded.
bool ModuleSettings::IsAutoLoadingEnabled |
( |
| ) |
|
- Returns
true
if support for module auto-loading is enabled, false
otherwise.
bool ModuleSettings::IsThreadingSupportEnabled |
( |
| ) |
|
- Returns
true
if threading support has been configured into the CppMicroServices library, false
otherwise.
void ModuleSettings::SetAutoLoadingEnabled |
( |
bool |
enable | ) |
|
Enable or disable auto-loading support.
- Parameters
-
enable | If true , enable auto-loading support, disable it otherwise. |
void ModuleSettings::SetAutoLoadPaths |
( |
const PathList & |
paths | ) |
|
Set a list of paths in the file-system from which modules should be auto-loaded.
- Parameters
-
paths | A list of absolute file-system paths. |