25 #ifndef _CATTRIBUTELIST
26 #define _CATTRIBUTELIST
27 #include "libMRML/include/uses-declarations.h"
31 #include "libMRML/include/CMagic.h"
43 typedef map<string,pair<char*,char*> > CBase;
51 const_iterator
find(
string inString)
const;
53 void add(
const string& inFirst,
54 const string& inSecond);
56 void add(
const string& inAttribute,
long inValue);
58 void add(
const string& inAttribute,
double inValue);
82 void toXML(
string& outString)
const;
void add(const string &inFirst, const string &inSecond)
adding an attribute
const_iterator find(string inString) const
finding in this
virtual pair< bool, string > stringReadAttribute(const string &inAttribute) const
reading an attribute for strings
void toXML(string &outString) const
Outputting a string to XML.
a simple class destined to contain attribute-value pairs in an easily accessible fashion ...
Definition: CAttributeList.h:36
pair< bool, long > longReadAttribute(const string &inAttribute) const
reading an attribute for integers using stringReadAttribute
list< string > getKeys() const
Get the keys of all attributes in this list.
CAttributeList(const char *const *const inAttributeList)
from expat
pair< bool, double > doubleReadAttribute(const string &inAttribute) const
reading an attribute for doubles using stringReadAttribute
~CAttributeList()
the destructor in the case of char* as content it deletes the arrays of char.
This is a simple class for debugging.
Definition: CMagic.h:12
pair< bool, bool > boolReadAttribute(const string &inAttribute) const
reading an attribute for booleans using stringReadAttribute it supports several pairs: yes/no true/fa...