Poco::OSP

class BundleProperties

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

BundleProperties();

Creates the BundleProperties.

Destructor

~BundleProperties protected virtual

~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 protected virtual

void enumerate(
    const std::string & key,
    Keys & range
) const;

getRaw protected virtual

bool getRaw(
    const std::string & key,
    std::string & value
) const;

removeRaw protected virtual

void removeRaw(
    const std::string & key
);

setRaw protected virtual

void setRaw(
    const std::string & key,
    const std::string & value
);

Variables

_mutex protected

mutable Poco::FastMutex _mutex;

_pLayeredConfig protected

Poco::Util::LayeredConfiguration::Ptr _pLayeredConfig;