l4snd::Property Class Reference

Property class. More...

List of all members.

Public Types

typedef std::pair
< std::string,
std::string > 
Pair
 Helper definition for a name/value relation.

Public Member Functions

void add (const std::string &name, const std::string &value)
 Append new property.
void remove (const std::string &name)
 Remove a property.
std::vector< Pairget () const
 Gets all stored properties.
unsigned numProperties () const
 Gets the number of stored properties.
void clear ()
 Clears all stored properties.
virtual ~Property ()
 Provide virtual destructor.


Detailed Description

Property class.

Contains name/value pairs that describe properties of the running application.

Definition at line 45 of file property.h.


Member Function Documentation

void l4snd::Property::add ( const std::string &  name,
const std::string &  value 
)

Append new property.

Parameters:
name property name
value property value

Definition at line 45 of file property.cpp.

void l4snd::Property::remove ( const std::string &  name  ) 

Remove a property.

Parameters:
name property name

Definition at line 52 of file property.cpp.

std::vector< Property::Pair > l4snd::Property::get (  )  const

Gets all stored properties.

Returns:
name/value pairs

Definition at line 66 of file property.cpp.

unsigned l4snd::Property::numProperties (  )  const

Gets the number of stored properties.

Returns:
number of properties

Definition at line 60 of file property.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Nov 24 14:41:26 2007 for log4sendpp by  doxygen 1.5.3