31#include <Ice/Properties.h>
33#define INHERITANCE_KEYWORD "inheritFrom"
34#define STRINGREPLACEMENT_NAMESPACE "Variables"
146 ::std::string
getProperty(const ::std::string& name) ICE_NOEXCEPT
override;
153 const ::std::string& defaultValue) ICE_NOEXCEPT
override;
157 ::Ice::Int
getPropertyAsInt(const ::std::string& name) ICE_NOEXCEPT
override;
163 ::Ice::Int defaultValue) ICE_NOEXCEPT
override;
167 ::Ice::StringSeq
getPropertyAsList(const ::std::string& name) ICE_NOEXCEPT
override;
174 const ::Ice::StringSeq& defaultValue) ICE_NOEXCEPT
override;
184 void setProperty(const ::std::string& name, const ::std::string& value)
override;
195 const ::Ice::StringSeq& options)
override;
204 void load(const ::std::string& fileName)
override;
257 void inherit(
const std::string& childNamespace,
258 const std::string& parentNamespace,
260 std::vector<std::string> heritageLine);
283 std::string
getParent(
const std::string& childNamespace,
295 const std::string& namespace_);
306 const std::string& namespace_);
330 void setModified(
bool modified);
void extractNamespaces(const Ice::PropertiesPtr &properties, NamespaceMap &namespaces)
Extracts all existing namespace within the passed property container.
void inherit(const std::string &childNamespace, const std::string &parentNamespace, Ice::PropertiesPtr &properties, std::vector< std::string > heritageLine)
Performs the inheritance of properties from parentNamespace to childNamespace.
bool isInHeritageLine(const std::vector< std::string > &heritageLine, const std::string &namespace_)
Checks whether the specified namespace exists already in the heritageLine.
void resolveNamespaceInheritance(const std::string &childNamespace, Ice::PropertiesPtr &properties)
Resolves namespace inheritance for a specific namespace.
std::string stripNamespace(const std::string &propertyName, const std::string &namespace_)
Removes the namespace of the property name.
bool hasParent(const std::string &childNamespace, const Ice::PropertiesPtr &properties)
Checks whether the specified namespace has a parent which it inherits from.
std::map< std::string, bool > NamespaceMap
void resolveInheritance(Ice::PropertiesPtr &properties)
Resolves all inheritance specifications made using the config notation "<namespace>....
std::string getParent(const std::string &childNamespace, const Ice::PropertiesPtr &properties)
Returns the parent namespace of a child namespace.
~InheritanceSolver() override
::std::string getPropertyWithDefault(const ::std::string &name, const ::std::string &defaultValue) ICE_NOEXCEPT override
IceUtil::Handle< InheritanceSolver > InheritanceSolverPtr
void setProperty(const ::std::string &name, const ::std::string &value) override
IceProperties(const Ice::PropertiesPtr iceProperties)
Ice property container constructor.
::Ice::PropertyDict getPropertiesForPrefix(const ::std::string &prefix) ICE_NOEXCEPT override
::Ice::PropertiesPtr clone() ICE_NOEXCEPT override
virtual void setInheritanceSolver(const InheritanceSolverPtr &inheritanceSolver)
Sets an inheritance solver in case of testing or using a non-default solver.
::Ice::Int getPropertyAsIntWithDefault(const ::std::string &name, ::Ice::Int defaultValue) ICE_NOEXCEPT override
::Ice::StringSeq parseCommandLineOptions(const ::std::string &prefix, const ::Ice::StringSeq &options) override
~IceProperties() override
Ice property container desctructor.
::std::string getProperty(const ::std::string &name) ICE_NOEXCEPT override
::Ice::StringSeq getPropertyAsList(const ::std::string &name) ICE_NOEXCEPT override
::Ice::StringSeq parseIceCommandLineOptions(const ::Ice::StringSeq &options) override
void load(const ::std::string &fileName) override
::Ice::Int getPropertyAsInt(const ::std::string &name) ICE_NOEXCEPT override
::Ice::StringSeq getPropertyAsListWithDefault(const ::std::string &name, const ::Ice::StringSeq &defaultValue) ICE_NOEXCEPT override
::Ice::StringSeq getCommandLineOptions() ICE_NOEXCEPT override
static Ice::PropertiesPtr create(const Ice::PropertiesPtr &iceProperties=nullptr)
virtual InheritanceSolverPtr getInheritanceSolver()
Returns the currently used inheritance solver.
::IceInternal::Handle<::Ice::Properties > PropertiesPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.