Poco::OSP

class BundleProperties

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, getInt64, getRaw, getRawString, getString, getUInt, getUInt64, has, hasOption, hasProperty, keys, parseBool, parseInt, parseInt64, parseUInt, parseUInt64, referenceCount, release, remove, removeRaw, setBool, setDouble, setInt, setInt64, setRaw, setRawWithEvent, setString, setUInt, setUInt64

Types

Ptr

typedef Poco::AutoPtr < BundleProperties > Ptr;

Constructors

BundleProperties

BundleProperties();

Creates the BundleProperties.

Destructor

~BundleProperties protected virtual

~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 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 * _pLayeredConfig;