#include <chunck.h>
Inheritance diagram for chunck:
Public Types | |
typedef unsigned int | type |
type of a chunck (i.e. The first 4byte field of the chunck structure). | |
Public Methods | |
virtual | ~chunck () throw () |
virtual type | get_type () const=0 throw () |
return the type of the chunck | |
virtual unsigned int | get_size () const=0 throw () |
return the size of the chunck | |
virtual chunck * | sub_block ()=0 throw (std::exception) |
extract a subchunck from the current read position | |
virtual bool | eof () const=0 throw () |
is the chunck completely read ? | |
virtual unsigned int | tell () const=0 throw () |
get the chunck current read position | |
virtual bool | seek (int delta, std::ios::seekdir dir=std::ios::cur)=0 throw (std::exception) |
move the current read position inside the chunck | |
virtual bool | read (void *buffer, unsigned int size)=0 throw (std::exception) |
read some data for the current read position | |
virtual char | get_char ()=0 throw (std::exception) |
extract the character at the current read position | |
virtual unsigned char | get_byte ()=0 throw (std::exception) |
extract the byte at the current read position | |
virtual short | get_short ()=0 throw (std::exception) |
extract the short at the current read position | |
virtual unsigned short | get_word ()=0 throw (std::exception) |
extract the word at the current read position | |
virtual unsigned int | get_dword ()=0 throw (std::exception) |
extract the dword at the current read position | |
Static Public Methods | |
std::string | chunck_string (type t) |
convert a type to a string |
This class is an interface for reading from a chunck.
Definition at line 36 of file chunck.h.
|
type of a chunck (i.e. The first 4byte field of the chunck structure).
Definition at line 39 of file chunck.h. Referenced by imuse_channel::append_data(), saud_channel::append_data(), player::checkBlock(), chunck_string(), get_strings(), cont_chunck::get_type(), file_chunck::get_type(), imuse_channel::processBuffer(), saud_channel::processBuffer(), and cont_chunck::sub_block(). |
|
|
|
convert a type to a string Utility function that convert a type to a string.
Definition at line 56 of file chunck.cpp. References type. Referenced by player::handleFrame(), imuse_channel::handleMap(), imuse_channel::processBuffer(), and saud_channel::processBuffer(). |
|
is the chunck completely read ?
Implemented in file_chunck, and cont_chunck. Referenced by imuse_channel::handleMap(), and codec37_decoder::proc1(). |
|
extract the byte at the current read position
Implemented in file_chunck, and cont_chunck. Referenced by codec37_decoder::proc1(), codec37_decoder::proc2(), codec37_decoder::proc3_with_fdfe(), codec37_decoder::proc3_without_fdfe(), and codec37_decoder::proc4(). |
|
extract the character at the current read position
Implemented in file_chunck, and cont_chunck. Referenced by codec37_decoder::proc2(). |
|
extract the dword at the current read position
Implemented in file_chunck, and cont_chunck. Referenced by imuse_channel::handleFormat(), imuse_channel::handleRegion(), imuse_channel::handleStop(), and imuse_channel::handleText(). |
|
extract the short at the current read position
Implemented in file_chunck, and cont_chunck. |
|
return the size of the chunck
Implemented in file_chunck, and cont_chunck. Referenced by player::checkBlock(), imuse_channel::handleFormat(), player::handleFrame(), imuse_channel::handleMap(), imuse_channel::handleRegion(), imuse_channel::handleStop(), imuse_channel::handleText(), and player::play(). |
|
return the type of the chunck
Implemented in file_chunck, and cont_chunck. Referenced by player::checkBlock(), player::handleFrame(), imuse_channel::handleMap(), and player::play(). |
|
extract the word at the current read position
Implemented in file_chunck, and cont_chunck. |
|
read some data for the current read position
Implemented in file_chunck, and cont_chunck. Referenced by imuse_channel::handleText(). |
|
move the current read position inside the chunck
Implemented in file_chunck, and cont_chunck. Referenced by imuse_channel::handleFormat(), and imuse_channel::handleRegion(). |
|
extract a subchunck from the current read position
Implemented in file_chunck, and cont_chunck. Referenced by imuse_channel::handleMap(). |
|
get the chunck current read position
Implemented in file_chunck, and cont_chunck. Referenced by codec37_decoder::proc2(). |