[CADIHash.h Index] [CADIHash.h Hierarchy]
a simple class destined to contain attribute-value pairs in an More...
#include <../libInvertedFile/include/CAttributeList.h>
Inherits: map
a simple class destined to contain attribute-value pairs in an
from expat from other c++ copy constructor finding in this adding an attribute adding an attribute for integers using the function for strings adding an attribute for doubles using using the function for strings reading an attribute for booleans using stringReadAttributeit supports several pairs:
yes/no
true/false
y/n
reading an attribute for integers using stringReadAttribute reading an attribute for doubles using stringReadAttribute reading an attribute for strings
All the attribute functions implement a primitive version
of inheritance: We look also at the parents of this, if we
do not find a given attribute in this.
this is virtual in order to plug in other methods of inheritance
Outputting a string to XML Public Members
Detailed Description
CAttributeList(const char* const * const inAttributeList)
CAttributeList(const list<pair <string,string> >& inAttributes)
CAttributeList(const CAttributeList& inList)
const_iterator find(string inString) const
void add(const string& inFirst, const string& inSecond)
void add(const string& inAttribute,long inValue)
void add(const string& inAttribute,double inValue)
pair<bool,bool> boolReadAttribute(const string& inAttribute)
pair<bool,long> longReadAttribute(const string& inAttribute)
pair<bool,double> doubleReadAttribute(const string& inAttribute)
virtual pair<bool,string> stringReadAttribute(const string& inAttribute)
void CAttributeList::toXML(string& outString)
Documentation generated by muellerw@pc7170 on Son Okt 8 16:04:40 CEST 2000
Kdoc