Poco::Util

class MapConfiguration

Library: Util
Package: Configuration
Header: Poco/Util/MapConfiguration.h

Description

An implementation of AbstractConfiguration that stores configuration data in a map.

Inheritance

Direct Base Classes: AbstractConfiguration

All Base Classes: Poco::RefCountedObject, AbstractConfiguration

Known Derived Classes: PropertyFileConfiguration

Member Summary

Member Functions: begin, clear, copyTo, end, enumerate, getRaw, 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, operator =, 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

StringMap protected

using StringMap = std::map < std::string, std::string >;

iterator protected

using iterator = StringMap::const_iterator;

Constructors

MapConfiguration

MapConfiguration() = default;

Creates an empty MapConfiguration.

Destructor

~MapConfiguration virtual

~MapConfiguration() = default;

Destroyes the MapConfiguration.

Member Functions

clear

void clear();

Clears the configuration.

copyTo

void copyTo(
    AbstractConfiguration & config
);

Copies all configuration properties to the given configuration.

begin protected inline

iterator begin() const;

end protected inline

iterator end() const;

enumerate protected virtual

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

getRaw protected virtual

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

removeRaw protected virtual

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

setRaw protected virtual

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