ldas-tools-framecpp
2.6.4
|
Buffer appropriate for caching frame data. More...
#include <BaseMemoryBuffer.hh>
Public Types | |
typedef BT | buffer_type |
typedef buffer_type::char_type | char_type |
typedef buffer_type::pos_type | pos_type |
typedef buffer_type::pos_type | size_type |
typedef INT_4U | buffer_size_type |
Public Member Functions | |
BaseMemoryBufferT () | |
Default constructor. More... | |
virtual | ~BaseMemoryBufferT () |
Destructor. More... | |
bool | FilterInternally () const |
Returns true if filtering happens internally; false otherwise. More... | |
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... | |
template<class DT > | |
void | filter (const DT &Data) |
virtual void | filter (const char_type *Start, const char_type *End)=0 |
void | FilterBuffer (const char *Begin, const char *End) |
const std::string & | BufferId () const |
Retrieve the string identification of the buffer. 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 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... | |
Friends | |
class | IStream |
class | OStream |
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 the call to the str( ) method before the buffer is associated with an IFrameStream object.
BT | Internal storage type to hold the buffer contents. |
|
inherited |
typedef BT FrameCPP::Common::BaseMemoryBufferT< BT >::buffer_type |
typedef buffer_type::char_type FrameCPP::Common::BaseMemoryBufferT< BT >::char_type |
|
protectedinherited |
Type specifying the container holding the active filters.
typedef buffer_type::pos_type FrameCPP::Common::BaseMemoryBufferT< BT >::pos_type |
typedef buffer_type::pos_type FrameCPP::Common::BaseMemoryBufferT< BT >::size_type |
FrameCPP::Common::BaseMemoryBufferT< BT >::BaseMemoryBufferT | ( | ) |
Default constructor.
[in] | Seed | Method use for input buffers to move data into the new instance. |
[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 |
|
protectedvirtual |
Initialization of the buffer.
Implements FrameCPP::Common::FrameBufferInterface.
|
inlineinherited |
Retrieve the string identification of the buffer.
|
inlineprotectedinherited |
|
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 |
|
virtual |
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 >.
|
friend |
|
friend |
|
staticinherited |
The default size for buffered input and output.
|
staticinherited |
|
protectedinherited |
Container holding all active filters.