34 #ifndef AIMS_IO_READER_H 35 #define AIMS_IO_READER_H 73 Reader(
const std::string& filename );
83 virtual bool read( T & obj,
int border=0,
const std::string* format = 0,
92 virtual T*
read(
int border = 0,
const std::string* format = 0,
95 void setMode( carto::AllocatorStrategy::MappingMode mode );
107 static std::string
extension(
const std::string & filename );
111 carto::AllocatorStrategy::MappingMode
_mode;
123 reader.
read( thing );
GenesisReader< T > & operator>>(GenesisReader< T > &reader, AimsData< T > &thing)
void setMode(carto::AllocatorStrategy::MappingMode mode)
set input file mode - soon obsolete
const std::string & fileName() const
get input file name
The class for EcatSino data write operation.
void setFileName(const std::string &fileName)
set input file name
carto::AllocatorContext _alloccontext
void setAllocatorContext(const carto::AllocatorContext &ac)
allocator control (not used by every format yet)
carto::Object options() const
const carto::AllocatorContext & allocatorContext() const
static std::string extension(const std::string &filename)
Generic reader for every format of Aims object.
carto::AllocatorStrategy::MappingMode _mode
virtual bool read(T &obj, int border=0, const std::string *format=0, int frame=-1)
Finds the correct format and reads the object. if format is specified, this format is tried first...
void setOptions(carto::Object options)