6 using namespace HEPREP;
14 DefaultHepRepType::DefaultHepRepType(
HepRepType* parentType,
string typeName)
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;
105 types.push_back(type);
virtual void addType(HepRepType *type)=0
const XML_Char XML_Encoding * info
std::vector< HEPREP::HepRepType * > types
std::string getDescription()
HEPREP::HepRepType * getSuperType()
virtual std::string getFullName()=0
virtual HepRepAttValue * getAttValueFromNode(std::string lowerCaseName)=0
void setDescription(std::string description)
void addType(HEPREP::HepRepType *type)
void setInfoURL(std::string infoURL)
virtual HepRepType * getSuperType()=0
const XML_Char int const XML_Char * value
virtual HepRepAttDef * getAttDefFromNode(std::string lowerCaseName)=0
std::string getFullName()
std::vector< HEPREP::HepRepType * > getTypeList()
DefaultHepRepType(HEPREP::HepRepType *parent, std::string name)
HEPREP::HepRepType * parent
HEPREP::HepRepType * copy(HEPREP::HepRepType *parent)
virtual void addType(HepRepType *type)=0
HEPREP::HepRepAttValue * getAttValue(std::string name)
HEPREP::HepRepAttDef * getAttDef(std::string name)