Library: OSP
Package: Bundle
Header: Poco/OSP/BundleProperties.h
A simple wrapper class around Poco::Util::LayeredConfiguration that adds thread safety.
Direct Base Classes: Poco::Util::AbstractConfiguration
All Base Classes: Poco::RefCountedObject, Poco::Util::AbstractConfiguration
Member Functions: addProperties, enumerate, getRaw, removeProperties, removeRaw, setRaw
Inherited Functions: createView, duplicate, enumerate, expand, getBool, getDouble, getInt, getRaw, getRawString, getString, has, hasOption, hasProperty, keys, parseBool, parseInt, referenceCount, release, remove, removeRaw, setBool, setDouble, setInt, setRaw, setRawWithEvent, setString
typedef Poco::AutoPtr < BundleProperties > Ptr;
Creates the BundleProperties.
~BundleProperties();
void addProperties(
Poco::Util::AbstractConfiguration * pConfig,
bool shared
);
Adds a configuration.
If shared is true, increments the configuration's reference count.
void addProperties(
Poco::Util::AbstractConfiguration * pConfig,
int priority,
bool shared
);
Adds a configuration with the given priority.
If shared is true, increments the configuration's reference count.
void removeProperties(
Poco::Util::AbstractConfiguration * pConfig
);
Removes the given configuration.
void enumerate(
const std::string & key,
Keys & range
) const;
bool getRaw(
const std::string & key,
std::string & value
) const;
void removeRaw(
const std::string & key
);
void setRaw(
const std::string & key,
const std::string & value
);
mutable Poco::FastMutex _mutex;
Poco::Util::LayeredConfiguration * _pLayeredConfig;