Manager for reading CBVS file-packs.
More...
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 CBVSInfo & | info () 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 BinID & | binID () 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 CBVSReader & | reader (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< CBVSReader > | readers_ |
| CBVSInfo & | info_ |
| bool | vertical_ |
| DataInterpreter< int > | iinterp |
| DataInterpreter< float > | finterp |
| DataInterpreter< double > | dinterp |
| int | rdr1firstsampnr_ |
| bool | haveaux_ |
| std::istream * | auxstrm_ |
| int | auxinlidx_ |
| int | auxcrlidx_ |
| ObjectSet< AuxInlInf > | auxinlinfs_ |
| 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] |
| 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] |
| void CBVSReadMgr::createInfo |
( |
|
) |
[private] |
| void CBVSReadMgr::dumpInfo |
( |
std::ostream & |
, |
|
|
bool |
include_compinfo | |
|
) |
| | const |
| const char* CBVSReadMgr::errMsg_ |
( |
|
) |
const [protected, virtual] |
| bool CBVSReadMgr::fetch |
( |
void ** |
, |
|
|
const bool * |
comps = 0, |
|
|
const Interval< int > * |
samps = 0 | |
|
) |
| | |
| void CBVSReadMgr::fetchAuxInfo |
( |
bool |
yn = true |
) |
|
Single shot. Second time, may not work properly.
| void CBVSReadMgr::getAuxFromFile |
( |
PosAuxInfo & |
|
) |
[protected] |
| void CBVSReadMgr::getIsRev |
( |
bool & |
inl, |
|
|
bool & |
crl | |
|
) |
| | 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] |
| int CBVSReadMgr::nrReaders |
( |
|
) |
const [inline] |
returns number of readers left.
| const CBVSReader& CBVSReadMgr::reader |
( |
int |
idx |
) |
const [inline] |
| bool CBVSReadMgr::toNext |
( |
|
) |
|
| bool CBVSReadMgr::toStart |
( |
|
) |
|
Member Data Documentation