35 #ifndef ANA_OBJECT_MOBJECT_IO_H
36 #define ANA_OBJECT_MOBJECT_IO_H
48 const std::string & path =
"",
49 std::map<std::string, carto::Object>
51 bool return_id =
false );
56 const std::string & path =
"",
57 bool writeLeafs =
true,
58 std::map<AObject*, std::string>
62 const std::string & path =
"",
63 bool writeLeafs =
true );
65 const std::string & filename,
66 bool writeLeafs =
true );
68 const std::string & filename,
69 bool writeLeafs =
true );
71 const std::string & filename,
72 bool writeLeafs =
true );
Base Anatomist object (abstract)
static bool saveDescription(carto::Object aobject, const std::string &filename, bool writeLeafs=true)
static carto::Object createMObjectDescr(carto::Object aobject, const std::string &path="", bool writeLeafs=true)
for cases AObject is inside an Object, or we have a list of objects
static carto::Object createMObjectDescr(AObject *aobject, const std::string &path="", bool writeLeafs=true, std::map< AObject *, std::string > *obj_map=0)
static bool writeMObject(carto::Object aobject, const std::string &filename, bool writeLeafs=true)
static carto::Object readMObject(const std::string &filename)
static carto::Object readMObject(carto::Object object_descr, const std::string &path="", std::map< std::string, carto::Object > *obj_map=0, bool return_id=false)
static bool writeMObject(AObject *aobject, const std::string &filename, bool writeLeafs=true)