35 #ifndef ANA_OBJECT_OREADER_H 36 #define ANA_OBJECT_OREADER_H 60 typedef std::list<AObject *> (*LoadFunction)(
const std::string & filename,
61 PostRegisterList & subObjectsToRegister,
68 virtual std::list<AObject *>
load(
const std::string & filename,
69 PostRegisterList & subObjectsToRegister,
89 virtual std::list<AObject *>
load(
const std::string & filename,
90 PostRegisterList & subObjectsToRegister,
91 bool notifyFail =
true,
93 void* clientid=0 )
const;
95 bool onlyoutdated =
false )
const;
97 PostRegisterList & subObjectsToRegister,
104 static std::set<std::string>
106 static std::set<std::string>
110 std::list<AObject *>
load_internal(
const std::string & filename,
111 PostRegisterList & subObjectsToRegister,
116 typedef std::multimap<std::string, carto::rc_ptr<LoadFunctionClass> >
118 static std::list<AObject*> readMObject(
119 const std::string & filename,
120 std::vector<std::pair<AObject *, bool> > &,
carto::Object options );
121 static _storagetype & _loaders();
virtual std::list< AObject * > load(const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options)=0
static std::set< std::string > supportedFileExtensionsSet(const std::string &objtype)
std::vector< std::pair< AObject *, bool > > PostRegisterList
static std::set< std::string > anatomistSupportedFileExtensionsSet()
Base Anatomist object (abstract)
static std::string allSupportedFileExtensions()
static ObjectReader * reader()
singleton access
static std::string supportedFileExtensions(const std::string &objtype)
static std::string anatomistSupportedFileExtensions()
std::list< AObject * > load_internal(const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options) const
virtual AObject * readAims(const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options=carto::none()) const
virtual bool reload(AObject *object, bool notifyFail=true, bool onlyoutdated=false) const
static void registerLoader(const std::string &extension, LoadFunction newFunc)
Register a new extension and a loader function.
virtual ~LoadFunctionClass()
std::list< AObject * >(* LoadFunction)(const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options)