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, enumerate, 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

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;

See also: Poco::Util::AbstractConfiguration::enumerate()

getRaw protected virtual

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

See also: Poco::Util::AbstractConfiguration::getRaw()

removeRaw protected virtual

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

See also: Poco::Util::AbstractConfiguration::removeRaw()

setRaw protected virtual

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

See also: Poco::Util::AbstractConfiguration::setRaw()

Variables

_mutex protected

mutable Poco::FastMutex _mutex;

_pLayeredConfig protected

Poco::Util::LayeredConfiguration * _pLayeredConfig;