34 #ifndef SOMAIO_DATASOURCEINFO_DATASOURCECAPABILITIES_H
35 #define SOMAIO_DATASOURCEINFO_DATASOURCECAPABILITIES_H
Reading/Writing Capabilities of a FormatReader.
void setDataSource(const carto::rc_ptr< DataSource > ds)
void setThreadSafe(const bool &boo=true)
void setRandomAccessEfficient(const bool &boo=true)
bool isThreadSafe() const
void setSeekLine(const bool &boo=true)
carto::rc_ptr< DataSource > _mds
In a case where memory mapping is allowed, it is necessary to tell the AllocatorContext which DataSou...
void setSeekSlice(const bool &boo=true)
void setSeekVolume(const bool &boo=true)
void setSeekVoxel(const bool &boo=true)
bool isRandomAccessEfficient() const
void setInit(const bool &boo=true)
bool canHandleStrides() const
virtual ~DataSourceCapabilities()
void setMemoryMapping(const bool &boo=true)
bool canSeekVoxel() const
void setOrdered(const bool &boo=true)
bool canSeekSlice() const
DataSourceCapabilities(const DataSourceCapabilities &)
carto::rc_ptr< DataSource > mappableDataSource() const
bool isInit() const
Did we initialize the capabilities ? default : false Since a DataSourceInfo can be either fully initi...
void reset()
Sets the whole capabilities to its default value (including isInit() to false )
bool allowsMemoryMapping() const
unsigned int _capabilities
From LSB to MSB :
bool canSeekVolume() const
void setHandleStrides(const bool &boo=true)