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