|
|
IceProperties stores ice properties and resolves property inheritance. More...
#include <ArmarXCore/core/application/properties/IceProperties.h>
Inheritance diagram for IceProperties:Classes | |
| class | InheritanceSolver |
Public Types | |
| using | InheritanceSolverPtr = IceUtil::Handle< InheritanceSolver > |
Public Member Functions | |
| ::Ice::PropertiesPtr | clone () ICE_NOEXCEPT override |
| ::Ice::StringSeq | getCommandLineOptions () ICE_NOEXCEPT override |
| virtual InheritanceSolverPtr | getInheritanceSolver () |
| Returns the currently used inheritance solver. More... | |
| ::Ice::PropertyDict | getPropertiesForPrefix (const ::std::string &prefix) ICE_NOEXCEPT override |
| ::std::string | getProperty (const ::std::string &name) ICE_NOEXCEPT override |
| ::Ice::Int | getPropertyAsInt (const ::std::string &name) ICE_NOEXCEPT override |
| ::Ice::Int | getPropertyAsIntWithDefault (const ::std::string &name, ::Ice::Int defaultValue) ICE_NOEXCEPT override |
| ::Ice::StringSeq | getPropertyAsList (const ::std::string &name) ICE_NOEXCEPT override |
| ::Ice::StringSeq | getPropertyAsListWithDefault (const ::std::string &name, const ::Ice::StringSeq &defaultValue) ICE_NOEXCEPT override |
| ::std::string | getPropertyWithDefault (const ::std::string &name, const ::std::string &defaultValue) ICE_NOEXCEPT override |
| IceProperties (const Ice::PropertiesPtr iceProperties) | |
| Ice property container constructor. More... | |
| IceProperties (const IceProperties &source) | |
| void | load (const ::std::string &fileName) override |
| ::Ice::StringSeq | parseCommandLineOptions (const ::std::string &prefix, const ::Ice::StringSeq &options) override |
| ::Ice::StringSeq | parseIceCommandLineOptions (const ::Ice::StringSeq &options) override |
| virtual void | setInheritanceSolver (const InheritanceSolverPtr &inheritanceSolver) |
| Sets an inheritance solver in case of testing or using a non-default solver. More... | |
| void | setProperty (const ::std::string &name, const ::std::string &value) override |
| ~IceProperties () override | |
| Ice property container desctructor. More... | |
Static Public Member Functions | |
| static Ice::PropertiesPtr | create (const Ice::PropertiesPtr &iceProperties=nullptr) |
| static Ice::PropertiesPtr | create (Ice::StringSeq &propertySeq, const Ice::PropertiesPtr &iceProperties=nullptr) |
| static Ice::PropertiesPtr | create (int &argn, char *argv[], const Ice::PropertiesPtr &iceProperties=nullptr) |
IceProperties stores ice properties and resolves property inheritance.
This Ice property container supports inheritance. That is, a namespace can inherit all properties defined within another namespace. Inherited properties can also be overridden if redefined.
Additionally, there exists a stringreplacement namespace "Variables", which can be used to define variables that will be searched in the property values of namespaces that inherit from the "Variables" namespace. In case a property has a matching string, this string is replaced with the value of the global variable.
Example config:
The result is:
Definition at line 120 of file IceProperties.h.
Definition at line 310 of file IceProperties.h.
|
explicit |
Ice property container constructor.
Definition at line 68 of file IceProperties.cpp.
Here is the caller graph for this function:| IceProperties | ( | const IceProperties & | source | ) |
|
override |
Ice property container desctructor.
Definition at line 84 of file IceProperties.cpp.
|
override |
Definition at line 194 of file IceProperties.cpp.
|
static |
Definition at line 35 of file IceProperties.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
override |
Definition at line 155 of file IceProperties.cpp.
|
virtual |
Returns the currently used inheritance solver.
Definition at line 227 of file IceProperties.cpp.
|
override |
Definition at line 140 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 89 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 106 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 114 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 123 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 131 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 97 of file IceProperties.cpp.
Here is the call graph for this function:
|
override |
Definition at line 186 of file IceProperties.cpp.
|
override |
Definition at line 163 of file IceProperties.cpp.
|
override |
Definition at line 175 of file IceProperties.cpp.
|
virtual |
Sets an inheritance solver in case of testing or using a non-default solver.
Definition at line 233 of file IceProperties.cpp.
Here is the caller graph for this function:
|
override |
Definition at line 148 of file IceProperties.cpp.
Here is the call graph for this function: