20 #ifndef _OPENMBV_OBJECT_H_ 21 #define _OPENMBV_OBJECT_H_ 23 #include <fmatvec/atom.h> 26 #include <openmbvcppinterface/objectfactory.h> 27 #include <hdf5serie/group.h> 28 #include <mbxmlutilshelper/dom.h> 36 #ifndef SWIG // SWIG can not parse this (swig bug?). However it is not needed for the swig interface -> removed for swig 53 std::string enableStr, boundingBoxStr;
55 std::string environmentStr;
57 std::weak_ptr<Group> parent;
59 virtual void createHDF5File()=0;
60 virtual void openHDF5File()=0;
67 void setEnable(
bool enable) { enableStr=(enable)?
"true":
"false"; }
69 bool getEnable() {
return enableStr==
"true"?
true:
false; }
74 bool getBoundingBox() {
return boundingBoxStr==
"true"?
true:
false; }
77 void setName(
const std::string& name_) { name=name_; }
79 std::string getName() {
return name; }
82 virtual std::string
getFullName(
bool includingFileName=
false);
94 virtual xercesc::DOMElement *writeXMLFile(xercesc::DOMNode *parent);
99 std::weak_ptr<Group> getParent() {
return parent; }
104 std::string
getID()
const {
return ID; }
106 void setID(std::string ID_) { ID=std::move(ID_); }
bool getSelected() const
Definition: object.h:109
void setName(const std::string &name_)
Definition: object.h:77
bool getEnvironment()
Definition: object.cc:94
void setEnvironment(bool env)
Definition: object.h:86
void setBoundingBox(bool bbox)
Definition: object.h:72
void setEnable(bool enable)
Definition: object.h:67
void setID(std::string ID_)
Definition: object.h:106
virtual std::string getFullName(bool includingFileName=false)
Definition: object.cc:44
void setSelected(bool selected_)
Definition: object.h:111
std::string getID() const
Definition: object.h:104
std::shared_ptr< Group > getTopLevelGroup()
Definition: object.cc:90
virtual void initializeUsingXML(xercesc::DOMElement *element)
Definition: object.cc:52