Public Member Functions | Private Attributes

acsalarm::Properties Class Reference

#include <Properties.h>

List of all members.

Public Member Functions

 Properties ()
 Properties (const Properties &)
virtual ~Properties ()
Propertiesoperator= (const Properties &rhs)
bool operator== (const Properties &rhs)
bool operator!= (const Properties &rhs)
std::string getProperty (std::string key) const
std::auto_ptr< std::vector
< std::string > > 
propertyNames ()
void setProperty (std::string key, std::string value) throw (std::invalid_argument)
std::string toXML (int amountToIndent=6)
unsigned int getSize () const

Private Attributes

std::map< std::string,
std::string > 
propertiesMap

Constructor & Destructor Documentation

acsalarm::Properties::Properties (  ) 
acsalarm::Properties::Properties ( const Properties  ) 
virtual acsalarm::Properties::~Properties (  )  [virtual]

Member Function Documentation

std::string acsalarm::Properties::getProperty ( std::string  key  )  const

Searches for the property with the specified key in this property list.

Returns:
the value of the property with the given key; the returned string is empty if a pair with the given key does not exist
unsigned int acsalarm::Properties::getSize (  )  const [inline]
Returns:
the size of the properties

References propertiesMap.

bool acsalarm::Properties::operator!= ( const Properties rhs  ) 
Properties& acsalarm::Properties::operator= ( const Properties rhs  ) 
bool acsalarm::Properties::operator== ( const Properties rhs  ) 
std::auto_ptr<std::vector<std::string> > acsalarm::Properties::propertyNames (  ) 
void acsalarm::Properties::setProperty ( std::string  key,
std::string  value 
) throw (std::invalid_argument)

Add a pair <key, value> to the property

Parameters:
key The key (not empty)
value The value (not empty)
std::string acsalarm::Properties::toXML ( int  amountToIndent = 6  ) 

Member Data Documentation

std::map<std::string, std::string> acsalarm::Properties::propertiesMap [private]

Referenced by getSize().


The documentation for this class was generated from the following file: