|  | anatomist
    5.1.2
    3D neuroimaging data viewer | 
Object reader. More...
#include <anatomist/object/oReader.h>
| Classes | |
| class | LoadFunctionClass | 
| Public Types | |
| typedef std::vector< std::pair< AObject *, bool > > | PostRegisterList | 
| typedef std::list< AObject * >(* | LoadFunction) (const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options) | 
| Public Member Functions | |
| ObjectReader () | |
| virtual | ~ObjectReader () | 
| virtual std::list< AObject * > | load (const std::string &filename, PostRegisterList &subObjectsToRegister, bool notifyFail=true, carto::Object options=carto::none(), void *clientid=0) const | 
| virtual bool | reload (AObject *object, bool notifyFail=true, bool onlyoutdated=false) const | 
| virtual AObject * | readAims (const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options=carto::none()) const | 
| Static Public Member Functions | |
| static ObjectReader * | reader () | 
| singleton access  More... | |
| static void | registerLoader (const std::string &extension, LoadFunction newFunc) | 
| Register a new extension and a loader function.  More... | |
| static void | registerLoader (const std::string &extension, LoadFunctionClass *newFunc) | 
| same as the above function but takes a class loader instead.  More... | |
| static std::string | allSupportedFileExtensions () | 
| static std::string | anatomistSupportedFileExtensions () | 
| static std::string | supportedFileExtensions (const std::string &objtype) | 
| static std::string | supportedFileExtensions (const std::set< std::string > &objtypes) | 
| static std::set< std::string > | supportedFileExtensionsSet (const std::string &objtype) | 
| static std::set< std::string > | anatomistSupportedFileExtensionsSet () | 
| static void | cleanup () | 
| unregister all loaders (called when exiting)  More... | |
| Protected Member Functions | |
| std::list< AObject * > | load_internal (const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options) const | 
Object reader.
Replacement for static AObject::Load functions. Can be replaced by a derived class to include support for new objects. In addition, a registration procedure allows to add or replace readers functions for a given filename extension.
| typedef std::list<AObject *>(* anatomist::ObjectReader::LoadFunction) (const std::string &filename, PostRegisterList &subObjectsToRegister, carto::Object options) | 
| typedef std::vector<std::pair<AObject*,bool> > anatomist::ObjectReader::PostRegisterList | 
| anatomist::ObjectReader::ObjectReader | ( | ) | 
| 
 | virtual | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
unregister all loaders (called when exiting)
| 
 | virtual | 
| 
 | protected | 
| 
 | virtual | 
| 
 | static | 
singleton access
| 
 | static | 
Register a new extension and a loader function.
| 
 | static | 
same as the above function but takes a class loader instead.
| newFunc | will be owned by ObjectReader | 
| 
 | virtual | 
| 
 | static | 
| 
 | static | 
| 
 | static |