(C)Copyright 2000 NTT Cyber Space Laboratories
class CHeaderManager {
public:
// initialization, destructor
static CHeaderManager*
Create(CChunkChunk& twinChunk); // static member function for
initialization
virtual ~CHeaderManager();
// destructor
// member functions
const std::string
GetID(); // TwinVQ
get TwinVQ data ID
CChunk GetPrimaryChunk(std::string
chunkID); //
get normal chunk information
CChunk GetSecondaryChunk(std::string
chunkID); //
get auxiliary chunk information
// exception
class err_FailGetChunk; //
failure in data acquisition
}
CHeaderManager
stores the bit stream header information.
At the initialization, it creates data base by reading twinChunk
information
stored in CChunkChunk
class objects.
Header information can be accessed by GetPrimaryChunk()
and GetSecondaryChunk()
Create()
.
This function reads header information twinChunk and returns a pointer
to a CHeaderChunk class objects.
If the twinChunk
format is incorrect,
Create()
returns NULL.
TvqGetBsHeaderInfo()
in a sample program.delete
when it becomes unnecessary.
theHeaderManager
) is shown as follows.
CChunkChunk *twinChunk = TvqGetBsHeaderInfo(bfp); CHeaderManager *theHeaderManager = CHeaderManager::Create(*twinChunk);
std::string GetID()
CChunk GetPrimaryChunk( std::string chunkID)
err_FailGetChunk
.CChunk GetSecondaryChunk(std::string chunkID)
err_FailGetChunk
.CHeaderManager.h
HeaderManager.cxx
TvqGetBsHeaderInfo()
, CChunk