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 =
"" );
147 static const std::map<std::string, std::list<std::string> > &
extensions();
148 static std::set<std::string>
formats();
166 static std::string
fileExtension(
const std::string & filename );
170 static std::map<std::string, FileFormat<T>*> & _formats();
171 static std::map<std::string, std::list<std::string> > &
180 typedef std::set<std::string> (*FormatInfo)();
182 const std::string & datatype,
FormatInfo info );
183 static bool hasType(
const std::string & objtype,
184 const std::string & datatype );
185 static std::map<std::string, std::map<std::string, FormatInfo> > &
types();
static void registerType(const std::string &objtype, const std::string &datatype, FormatInfo info)
static std::map< std::string, std::map< std::string, FormatInfo > > & types()
static bool hasType(const std::string &objtype, const std::string &datatype)
std::set< std::string >(* FormatInfo)()
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder...
Object none()
Pointer to an empty aims::StructuringElement.