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;
56 std::weak_ptr<Group> parent;
58 virtual void createHDF5File()=0;
59 virtual void openHDF5File()=0;
61 virtual void terminate()=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,
bool stopAtSeparateFile=
false);
87 virtual xercesc::DOMElement *writeXMLFile(xercesc::DOMNode *parent);
95 std::weak_ptr<Group> getParent() {
return parent; }
100 std::string
getID()
const {
return ID; }
102 void setID(std::string ID_) { ID=std::move(ID_); }
void setName(const std::string &name_)
Definition: object.h:77
void setBoundingBox(bool bbox)
Definition: object.h:72
void setEnable(bool enable)
Definition: object.h:67
void setID(std::string ID_)
Definition: object.h:102
virtual std::string getFullName(bool includingFileName=false, bool stopAtSeparateFile=false)
Definition: object.cc:64
bool getSelected() const
Definition: object.h:105
void setSelected(bool selected_)
Definition: object.h:107
std::shared_ptr< Group > getSeparateGroup()
Definition: object.cc:106
std::string getID() const
Definition: object.h:100
std::shared_ptr< Group > getTopLevelGroup()
Definition: object.cc:110
virtual void initializeUsingXML(xercesc::DOMElement *element)
Definition: object.cc:72