10 using namespace HEPREP;
18 DefaultHepRepDefinition::DefaultHepRepDefinition()
24 for (set<HepRepAttDef*>::iterator i1 = list.begin(); i1 != list.end(); i1++) {
30 set<HepRepAttDef*> attSet;
31 for (map<string, HepRepAttDef*>::iterator i = attDefs.begin(); i != attDefs.end(); i++) {
32 attSet.insert((*i).second);
39 if (attDefs[lowerCaseName] != NULL)
delete attDefs[lowerCaseName];
40 attDefs[lowerCaseName] = hepRepAttDef;
49 transform(s.begin(), s.end(), s.begin(), (
int(*)(
int)) tolower);
50 return (attDefs.count(s) > 0) ? attDefs[s] : NULL;
std::set< HEPREP::HepRepAttDef * > getAttDefsFromNode()
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
virtual std::string getLowerCaseName()=0
void addAttDef(HEPREP::HepRepAttDef *hepRepAttDef)
~DefaultHepRepDefinition()
HEPREP::HepRepAttDef * getAttDefFromNode(std::string lowerCaseName)