File Information
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: createLocalView, createView, duplicate, enableEvents, enumerate, eventsEnabled, expand, getBool, getDouble, getInt, getInt16, getInt32, getInt64, getRaw, getRawString, getString, getUInt, getUInt16, getUInt32, getUInt64, has, hasOption, hasProperty, keys, parseBool, parseInt, parseInt16, parseInt64, parseUInt, parseUInt16, parseUInt64, referenceCount, release, remove, removeRaw, setBool, setDouble, setInt, setInt16, setInt32, setInt64, setRaw, setRawWithEvent, setString, setUInt, setUInt16, setUInt32, setUInt64
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < BundleProperties >;
Constructors
BundleProperties
Creates the BundleProperties.
Destructor
~BundleProperties
~BundleProperties();
Member Functions
addProperties
void addProperties(
Poco::Util::AbstractConfiguration::Ptr pConfig
);
Adds a configuration.
If shared is true, increments the configuration's reference count.
addProperties
void addProperties(
Poco::Util::AbstractConfiguration::Ptr pConfig,
int priority
);
Adds a configuration with the given priority.
If shared is true, increments the configuration's reference count.
removeProperties
void removeProperties(
Poco::Util::AbstractConfiguration::Ptr 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::Ptr _pLayeredConfig;