14 #ifndef OHMMS_OHMMSOBJECT_H 15 #define OHMMS_OHMMSOBJECT_H 47 OhmmsObject(
const std::string& tname,
const std::string& oname);
const std::string & typeName() const
return the type name
void setTypeName(const std::string &tname)
set the type name
std::string myName
the name of the node, corresponds to the xml tag
virtual OhmmsObject * makeClone() const =0
int elementByteSize() const
returns the byte size of the object
int id() const
return the ObjectID which is unique to each object
void setID(int i)
overwrite ObjectID
Declaration of OhmmsElementBase and define xml-related macros.
int ObjectID
the unique ID of this object
An OhmmsElementBase with extra members to keep track the object/type.
int ElementByteSize
the byte size of this object
Abstract class to provide xml-compatible I/O interfaces for the derived classes.
void setObjName(const std::string &oname)
set the object name
std::string TypeName
the type name of this object
const std::string & objName() const
return the object name
OhmmsObject()
default constructor