Query and set certain properties of the CppMicroServices library. More...
Public Types | |
| typedef std::vector< std::string > | PathList | 
Static Public Member Functions | |
| static std::string | CURRENT_MODULE_PATH () | 
| Returns a special string which can be used as an argument for a AddAutoLoadPath() call.  More... | |
| static bool | IsThreadingSupportEnabled () | 
| static bool | IsAutoLoadingEnabled () | 
| static void | SetAutoLoadingEnabled (bool enable) | 
| Enable or disable auto-loading support.  More... | |
| static PathList | GetAutoLoadPaths () | 
| static void | SetAutoLoadPaths (const PathList &paths) | 
| Set a list of paths in the file-system from which modules should be auto-loaded.  More... | |
| static void | AddAutoLoadPath (const std::string &path) | 
| Add a path in the file-system to the list of paths from which modules will be auto-loaded.  More... | |
| static void | SetStoragePath (const std::string &path) | 
| Set a local storage path for persistend module data.  More... | |
| static std::string | GetStoragePath () | 
| Get the absolute path for persistent data.  More... | |
Query and set certain properties of the CppMicroServices library.
The following environment variables influence the runtime behavior of the CppMicroServices library:
| typedef std::vector<std::string> ModuleSettings::PathList | 
      
  | 
  static | 
Add a path in the file-system to the list of paths from which modules will be auto-loaded.
| path | The additional absolute auto-load path in the file-system. | 
      
  | 
  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.
      
  | 
  static | 
      
  | 
  static | 
Get the absolute path for persistent data.
The returned path might be empty. If the path is non-empty, it is safe to assume that the path exists and is writable.
      
  | 
  static | 
true if support for module auto-loading is enabled, false otherwise.false if support for auto-loading has not been configured into the CppMicroServices library or if it has been disabled by defining the US_DISABLE_AUTOLOADING environment variable. 
      
  | 
  static | 
true if threading support has been configured into the CppMicroServices library, false otherwise. 
      
  | 
  static | 
Enable or disable auto-loading support.
| enable | If true, enable auto-loading support, disable it otherwise. | 
      
  | 
  static | 
Set a list of paths in the file-system from which modules should be auto-loaded.
| paths | A list of absolute file-system paths. | 
      
  | 
  static | 
Set a local storage path for persistend module data.
This path is used as a base directory for providing modules with a storage path for writing persistent data. The callee must ensure that the provided path exists and is writable.
| path | An absolute path for writing persistent data. |