37 #ifndef AIMS_IO_FORMAT_H 38 #define AIMS_IO_FORMAT_H 65 virtual bool read(
const std::string & filename, T & obj,
66 const carto::AllocatorContext & context,
71 virtual T* read(
const std::string & filename,
72 const carto::AllocatorContext & context,
77 virtual bool write(
const std::string &,
const T &,
92 virtual bool check(
const std::string & filename,
Finder & f )
const = 0;
142 static void registerFormat(
const std::string & formatID,
144 const std::vector<std::string> & extensions,
145 const std::string & before =
"" );
146 static void unregisterFormat(
const std::string & formatID );
147 static FileFormat<T>* fileFormat(
const std::string & format );
148 static const std::map<std::string, std::list<std::string> > & extensions();
149 static std::set<std::string> formats();
166 static void registerBaseFormats();
167 static std::string fileExtension(
const std::string & filename );
171 static std::map<std::string, FileFormat<T>*> & _formats();
172 static std::map<std::string, std::list<std::string> > &
181 typedef std::set<std::string> (*FormatInfo)();
182 static void registerType(
const std::string & objtype,
183 const std::string & datatype, FormatInfo info );
184 static bool hasType(
const std::string & objtype,
185 const std::string & datatype );
186 static std::map<std::string, std::map<std::string, FormatInfo> > & types();
The class for EcatSino data write operation.
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder...
Object none()
Pointer to an empty aims::StructuringElement.