namespace Akenti class Properties

The Properties class holds a set of named properties

Public Methods

Properties ()
Constructs this object
~Properties ()
Destroys this object
void load (const string& filename)
Reads a property list (key and element pairs) from a file
void load (istream& is)
Reads a property list (key and element pairs) from an input stream
string setValue (const string& key, const string& value)
const string& getValue (const string& key, const string& defaultValue = "") const
Searches for the property with the specified key in this property list
string setValue (const pair& key, const string& value)
const string& getValue (const pair& key, const string& defaultValue = "") const
vector getKeys () const
vector < pair > getKeyPairs () const
string paramString () const
Returns the contents of the Properties table
static Properties& getSystemProperties ()

Documentation

The Properties class holds a set of named properties. The Properties can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string.
Properties()
Constructs this object

~Properties()
Destroys this object

void load(const string& filename)
Reads a property list (key and element pairs) from a file

void load(istream& is)
Reads a property list (key and element pairs) from an input stream

string setValue(const string& key, const string& value)

const string& getValue(const string& key, const string& defaultValue = "") const
Searches for the property with the specified key in this property list. If the key is not found the method returns the defaultValue.

string setValue(const pair& key, const string& value)

const string& getValue(const pair& key, const string& defaultValue = "") const

vector getKeys() const

vector < pair > getKeyPairs() const

string paramString() const
Returns the contents of the Properties table

static Properties& getSystemProperties()


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de