34 #ifndef SOMAIO_IO_READER_H
35 #define SOMAIO_IO_READER_H
82 Reader(
const std::string & filename );
85 Reader( std::istream & stream );
102 int passbegin = 1,
int passend = 4 );
119 int passbegin = 1,
int passend = 4 );
151 void attach( std::istream & stream );
165 static std::string
extension(
const std::string & filename );
184 reader.
read( thing );
Generic reader for every format of Cartograph object.
void setAllocatorContext(const AllocatorContext &ac)
const carto::rc_ptr< DataSourceInfo > & dataSourceInfo() const
AllocatorContext _alloccontext
static std::string extension(const std::string &filename)
const carto::rc_ptr< DataSource > dataSource() const
carto::Object options() const
virtual bool read(T &obj, carto::Object header=carto::none(), int passbegin=1, int passend=4)
Finds the correct format and reads the object.
const AllocatorContext & allocatorContext() const
void setOptions(carto::Object options)
carto::rc_ptr< DataSourceInfo > & dataSourceInfo()
void attach(carto::rc_ptr< DataSource > ds)
carto::rc_ptr< DataSourceInfo > _datasourceinfo
unsigned long long offset_t
Offsets are 64 bits if supported.
soma::Reader< T > & operator>>(soma::Reader< T > &reader, T &thing)