8 using namespace HEPREP;
19 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
26 if (type == NULL) cerr <<
"HepRepInstance cannot be created without a HepRepType." << endl;
33 for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
36 for (vector<HepRepPoint*>::iterator i2 = points.begin(); i2 != points.end(); i2++) {
42 cerr <<
"DefaultHepRepInstance::overlay(HepRepInstance * instance) not implemented." << endl;
46 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstance*, HepRepSelectFilter*) not implemented." << endl;
51 cerr <<
"DefaultHepRepInstance::copy(HepRepTypeTree*, HepRepInstanceTree*, HepRepSelectFilter*) not implemented." << endl;
60 points.push_back(point);
72 instances.push_back(instance);
76 cerr <<
"DefaultHepRepInstance::removeInstance(HepRepInstance*) not implemented." << endl;
85 return (value != NULL) ? value : type->
getAttValue(name);
void addInstance(HEPREP::HepRepInstance *instance)
virtual void addInstance(HepRepInstance *instance)=0
void addPoint(HEPREP::HepRepPoint *point)
DefaultHepRepInstance(HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type)
const XML_Char int const XML_Char * value
HEPREP::HepRepInstance * getSuperInstance()
virtual HepRepAttValue * getAttValue(std::string name)=0
std::vector< HEPREP::HepRepPoint * > getPoints()
HEPREP::HepRepAttValue * getAttValue(std::string name)
HEPREP::HepRepAttValue * getAttValueFromNode(std::string lowerCaseName)
void overlay(HEPREP::HepRepInstance *instance)
HEPREP::HepRepType * getType()
virtual void addInstance(HepRepInstance *instance)=0
void removeInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstance * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter)
std::vector< HEPREP::HepRepInstance * > getInstances()