6 using namespace HEPREP;
14 DefaultHepRepType::DefaultHepRepType(
HepRepType* parentType,
string typeName)
15 : DefaultHepRepDefinition(), parent(parentType),
name(typeName) {
16 this->description =
"No Description";
17 this->infoURL =
"No Info URL";
21 parent->addType(
this);
26 : DefaultHepRepDefinition(), parent(NULL),
name(typeName) {
27 this->description =
"No Description";
28 this->infoURL =
"No Info URL";
34 for (vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
46 while ((def == NULL) && (type != NULL)) {
51 cerr <<
"ERROR: No HepRepDefaults, trying to get definition for: " << defName << endl;
63 while ((value == NULL) && (type != NULL)) {
68 cerr <<
"ERROR: No HepRepDefaults, trying to get value for: " << attName << endl;
75 cerr <<
"DefaultHepRepType::copy(HepRepType*) not implemented." << endl;
92 this->description = desc;
100 this->infoURL =
info;
105 types.push_back(type);