Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

CBVSReadMgr Class Reference

Manager for reading CBVS file-packs. More...

Inheritance diagram for CBVSReadMgr:
CBVSIOMgr

List of all members.

Public Member Functions

 CBVSReadMgr (const char *, const CubeSampling *cs=0, bool single_file=false, bool glob_info_only=false)
 ~CBVSReadMgr ()
const CBVSInfoinfo () const
void close ()
BinID nextBinID () const
bool goTo (const BinID &)
bool toNext ()
bool toStart ()
bool getAuxInfo (PosAuxInfo &)
bool fetch (void **, const bool *comps=0, const Interval< int > *samps=0)
 See CBVSReader::fetch comments.
int nrComponents () const
const BinIDbinID () const
bool hasAuxInfo () const
void fetchAuxInfo (bool yn=true)
 Single shot. Second time, may not work properly.
void getIsRev (bool &inl, bool &crl) const
const char * baseFileName () const
int nrReaders () const
const CBVSReaderreader (int idx) const
int pruneReaders (const CubeSampling &)
 returns number of readers left.
void dumpInfo (std::ostream &, bool include_compinfo) const
const TypeSet< Coord > & trailerCoords () const
void getPositions (TypeSet< BinID > &) const
void getPositions (TypeSet< Coord > &) const
 This may actually reset the position to the first.

Static Public Member Functions

static const char * check (const char *)

Protected Member Functions

bool addReader (std::istream *, const CubeSampling *, bool)
bool addReader (const char *, const CubeSampling *, bool)
int nextRdrNr (int) const
const char * errMsg_ () const
void getAuxFromFile (PosAuxInfo &)

Protected Attributes

ObjectSet< CBVSReaderreaders_
CBVSInfoinfo_
bool vertical_
DataInterpreter< int > iinterp
DataInterpreter< float > finterp
DataInterpreter< double > dinterp
int rdr1firstsampnr_
bool haveaux_
std::istream * auxstrm_
int auxinlidx_
int auxcrlidx_
ObjectSet< AuxInlInfauxinlinfs_
int auxnrbytes_
unsigned char auxflgs_

Private Member Functions

void createInfo ()
bool handleInfo (CBVSReader *, int)
void handleAuxFile ()
void handleAuxTrailer ()

Detailed Description

Manager for reading CBVS file-packs.


Constructor & Destructor Documentation

CBVSReadMgr::CBVSReadMgr ( const char *  ,
const CubeSampling cs = 0,
bool  single_file = false,
bool  glob_info_only = false 
)

glob_info_only: I am useless except for inspecting global info. See also CBVSReader.

CBVSReadMgr::~CBVSReadMgr (  ) 

Member Function Documentation

bool CBVSReadMgr::addReader ( std::istream *  ,
const CubeSampling ,
bool   
) [protected]
bool CBVSReadMgr::addReader ( const char *  ,
const CubeSampling ,
bool   
) [protected]
const char* CBVSReadMgr::baseFileName (  )  const [inline]
const BinID& CBVSReadMgr::binID (  )  const [virtual]

Implements CBVSIOMgr.

static const char* CBVSReadMgr::check ( const char *   )  [static]

Determines whether this is a CBVS file pack. returns an error message, or null if OK.

void CBVSReadMgr::close (  )  [virtual]

Implements CBVSIOMgr.

void CBVSReadMgr::createInfo (  )  [private]
void CBVSReadMgr::dumpInfo ( std::ostream &  ,
bool  include_compinfo 
) const
const char* CBVSReadMgr::errMsg_ (  )  const [protected, virtual]

Implements CBVSIOMgr.

bool CBVSReadMgr::fetch ( void **  ,
const bool *  comps = 0,
const Interval< int > *  samps = 0 
)

See CBVSReader::fetch comments.

void CBVSReadMgr::fetchAuxInfo ( bool  yn = true  ) 

Single shot. Second time, may not work properly.

void CBVSReadMgr::getAuxFromFile ( PosAuxInfo  )  [protected]
bool CBVSReadMgr::getAuxInfo ( PosAuxInfo  ) 
void CBVSReadMgr::getIsRev ( bool &  inl,
bool &  crl 
) const
void CBVSReadMgr::getPositions ( TypeSet< BinID > &   )  const
void CBVSReadMgr::getPositions ( TypeSet< Coord > &   )  const

This may actually reset the position to the first.

bool CBVSReadMgr::goTo ( const BinID  ) 
void CBVSReadMgr::handleAuxFile (  )  [private]
void CBVSReadMgr::handleAuxTrailer (  )  [private]
bool CBVSReadMgr::handleInfo ( CBVSReader ,
int   
) [private]
bool CBVSReadMgr::hasAuxInfo (  )  const [inline]
const CBVSInfo& CBVSReadMgr::info (  )  const [inline]
BinID CBVSReadMgr::nextBinID (  )  const
int CBVSReadMgr::nextRdrNr ( int   )  const [protected]
int CBVSReadMgr::nrComponents (  )  const [virtual]

Implements CBVSIOMgr.

int CBVSReadMgr::nrReaders (  )  const [inline]
int CBVSReadMgr::pruneReaders ( const CubeSampling  ) 

returns number of readers left.

const CBVSReader& CBVSReadMgr::reader ( int  idx  )  const [inline]
bool CBVSReadMgr::toNext (  ) 
bool CBVSReadMgr::toStart (  ) 
const TypeSet<Coord>& CBVSReadMgr::trailerCoords (  )  const

Member Data Documentation

int CBVSReadMgr::auxcrlidx_ [protected]
unsigned char CBVSReadMgr::auxflgs_ [protected]
int CBVSReadMgr::auxinlidx_ [protected]
int CBVSReadMgr::auxnrbytes_ [protected]
std::istream* CBVSReadMgr::auxstrm_ [protected]
bool CBVSReadMgr::haveaux_ [protected]
bool CBVSReadMgr::vertical_ [protected]