20 #ifndef _OPENMBV_OBJECT_H_
21 #define _OPENMBV_OBJECT_H_
23 #include <fmatvec/atom.h>
26 #include <hdf5serie/group.h>
27 #include <mbxmlutilshelper/dom.h>
35 #ifndef SWIG // SWIG can not parse this (swig bug?). However it is not needed for the swig interface -> removed for swig
46 :
virtual public fmatvec::Atom
52 std::string enableStr, boundingBoxStr;
54 std::string environmentStr;
55 std::weak_ptr<Group> parent;
57 virtual void createHDF5File()=0;
58 virtual void openHDF5File()=0;
66 void setEnable(
bool enable) { enableStr=(enable)?
"true":
"false"; }
68 bool getEnable() {
return enableStr==
"true"?
true:
false; }
73 bool getBoundingBox() {
return boundingBoxStr==
"true"?
true:
false; }
76 void setName(
const std::string& name_) { name=name_; }
78 std::string getName() {
return name; }
93 virtual xercesc::DOMElement *writeXMLFile(xercesc::DOMNode *parent);
98 std::weak_ptr<Group> getParent() {
return parent; }
103 std::string
getID()
const {
return ID; }
105 void setID(std::string ID_) { ID=std::move(ID_); }
void setName(const std::string &name_)
Definition: object.h:76
bool getEnvironment()
Definition: object.cc:97
void setEnvironment(bool env)
Definition: object.h:85
void setBoundingBox(bool bbox)
Definition: object.h:71
void setEnable(bool enable)
Definition: object.h:66
void setID(std::string ID_)
Definition: object.h:105
virtual std::string getFullName()
Definition: object.cc:44
std::string getID() const
Definition: object.h:103
std::shared_ptr< Group > getTopLevelGroup()
Definition: object.cc:93
virtual void initializeUsingXML(xercesc::DOMElement *element)
Definition: object.cc:55