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

StringMap protected

typedef std::map < std::string, std::string > StringMap;

iterator protected

typedef StringMap::const_iterator iterator;

Constructors

MapConfiguration

MapConfiguration();

Creates an empty MapConfiguration.

Destructor

~MapConfiguration protected virtual

~MapConfiguration();

Member Functions

clear

void clear();

Clears the configuration.

begin protected

iterator begin() const;

end protected

iterator end() const;

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
);