ldas-tools-framecpp
2.6.5
|
Buffer appropriate for caching frame data. More...
#include <DynamicMemoryBuffer.hh>
Public Types | |
typedef BT | buffer_type |
typedef buffer_type::char_type | char_type |
typedef INT_4U | buffer_size_type |
typedef start_time_normalized_type | start_time_type |
typedef delta_t_normalized_type | delta_t_type |
typedef INT_8U | size_type |
type for number of bytes to read and size of buffer More... | |
Public Member Functions | |
DynamicMemoryBufferT (bool ParentAutoDelete=true) | |
Default constructor. More... | |
virtual | ~DynamicMemoryBufferT () |
Destructor. More... | |
virtual void | NextBlock (const char *Buffer, size_type Size) |
Add a buffer to the frame file memory image. More... | |
virtual void | Reset () |
Initialize buffer to accumulate a frame file. More... | |
bool | FilterInternally () const |
Returns true if filtering happens internally; false otherwise. More... | |
std::string | str () |
void | str (const std::string &S) |
template<class DT > | |
void | filter (const DT &Data) |
virtual void | filter (const char_type *Start, const char_type *End)=0 |
bool | AutoDelete () const |
void | AutoDelete (bool Value) |
virtual void | FilterAdd (FrameCPP::Common::StreamFilter *Filter) |
Adds a filter to the stream. More... | |
virtual void | FilterRemove (FrameCPP::Common::StreamFilter *Filter) |
Removes a filter from the stream. More... | |
void | FilterBuffer (const char *Begin, const char *End) |
const std::string & | BufferId () const |
Retrieve the string identification of the buffer. More... | |
delta_t_type | DeltaT () const |
Retrieve the duration of the stream. More... | |
size_type | NextBlockSize () const |
Return the number of bytes to be made available. More... | |
size_type | Position () const |
Return the current position in the stream being scanned. More... | |
bool | Ready () const |
Check if a complete frame file is ready for processing. More... | |
start_time_type | StartTime () const |
Retrieve the start time of the stream. More... | |
Static Public Attributes | |
static const buffer_size_type | M_BUFFER_SIZE_DEFAULT = 256 * 1024 |
The default size for buffered input and output. More... | |
static const buffer_size_type | M_BUFFER_SIZE_SYSTEM |
Protected Types | |
typedef std::list< FrameCPP::Common::StreamFilter *> | filters_type |
Type specifying the container holding the active filters. More... | |
Protected Member Functions | |
virtual MemoryBufferT * | setbuf (char_type *S, std::streamsize N) |
Routine to register if the caller has specified a buffer. More... | |
virtual void | buffer () |
Initialization of the buffer. More... | |
void | bufferId (const std::string &Id) |
Protected Attributes | |
filters_type | m_filters |
Container holding all active filters. More... | |
Buffer appropriate for caching frame data.
If the buffer is for input, then the buffer needs to be initialized with the contents. The initialization needs to be done as via by reading chuncks of data and having the class stitch them together until a complete frame file object is available for processing.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Type specifying the container holding the active filters.
|
inherited |
type for number of bytes to read and size of buffer
|
inherited |
FrameCPP::Common::DynamicMemoryBufferT< BT >::DynamicMemoryBufferT | ( | bool | ParentAutoDelete = true | ) |
Default constructor.
[in] | ParentAutoDelete | True if dynamic memory associated with the temporary buffer should be release once this object goes out of scope. |
The default constructor will initialize all the parts used in the general case.
|
virtual |
Destructor.
Be careful to release all the resources that were created for this object.
|
inlineinherited |
|
inlineinherited |
|
protectedvirtualinherited |
Initialization of the buffer.
Implements FrameCPP::Common::FrameBufferInterface.
|
inlineinherited |
Retrieve the string identification of the buffer.
|
inlineprotectedinherited |
|
inlineinherited |
Retrieve the duration of the stream.
|
inlineinherited |
|
pure virtualinherited |
|
virtualinherited |
Adds a filter to the stream.
[in] | Filter | Filter function to add to the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >.
|
inherited |
|
virtualinherited |
Returns true if filtering happens internally; false otherwise.
Filtering currently is not optimized at the this layer so this method will always return false.
Implements FrameCPP::Common::FrameBufferInterface.
|
virtualinherited |
Removes a filter from the stream.
[in] | Filter | Filter function to remove from the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >.
|
virtual |
Add a buffer to the frame file memory image.
[in] | Buffer | The buffer to scan |
[in] | Size | The number of bytes in Buffer |
Reimplemented from FrameCPP::Common::FrameBufferInterface::Scanner.
|
inlineinherited |
Return the number of bytes to be made available.
|
inlineinherited |
Return the current position in the stream being scanned.
|
inlineinherited |
Check if a complete frame file is ready for processing.
|
virtual |
Initialize buffer to accumulate a frame file.
Reimplemented from FrameCPP::Common::FrameBufferInterface::Scanner.
|
protectedvirtualinherited |
Routine to register if the caller has specified a buffer.
|
inlineinherited |
Retrieve the start time of the stream.
|
inherited |
|
inherited |
|
staticinherited |
The default size for buffered input and output.
|
staticinherited |
|
protectedinherited |
Container holding all active filters.