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;
145 const std::string & before =
"" );
148 static const std::map<std::string, std::list<std::string> > &
extensions();
149 static std::set<std::string>
formats();
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> > &
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();
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder.
static bool hasType(const std::string &objtype, const std::string &datatype)
static void registerType(const std::string &objtype, const std::string &datatype, FormatInfo info)
std::set< std::string >(* FormatInfo)()
static std::map< std::string, std::map< std::string, FormatInfo > > & types()
The class for EcatSino data write operation.