ldas-tools-framecpp
2.7.0
|
Buffer appropriate for caching frame data. More...
#include <DynamicMemoryBuffer.hh>
Public Types | |
typedef std::stringbuf | buffer_type |
typedef std::stringbuf | buffer_type |
typedef buffer_type::char_type | char_type |
typedef buffer_type::char_type | char_type |
typedef INT_4U | buffer_size_type |
typedef INT_4U | buffer_size_type |
typedef start_time_normalized_type | start_time_type |
typedef start_time_normalized_type | start_time_type |
typedef delta_t_normalized_type | delta_t_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... | |
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... | |
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... | |
bool | FilterInternally () const |
Returns true if filtering happens internally; false otherwise. More... | |
virtual bool | FilterInternally () const =0 |
std::string | str () |
void | str (const std::string &S) |
std::string | str () |
void | str (const std::string &S) |
template<class DT > | |
void | filter (const DT &Data) |
bool | AutoDelete () const |
void | AutoDelete (bool Value) |
bool | AutoDelete () const |
void | AutoDelete (bool Value) |
virtual void | FilterAdd (FrameCPP::Common::StreamFilter *Filter) |
Adds a filter to the stream. More... | |
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... | |
virtual void | FilterRemove (FrameCPP::Common::StreamFilter *Filter) |
Removes a filter from the stream. More... | |
void | FilterBuffer (const char *Begin, const char *End) |
void | FilterBuffer (const char *Begin, const char *End) |
const std::string & | BufferId () const |
Retrieve the string identification of the buffer. More... | |
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... | |
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 | 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... | |
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... | |
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... | |
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... | |
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 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... | |
virtual void | buffer () |
Initialization of the buffer. More... | |
void | bufferId (const std::string &Id) |
void | bufferId (const std::string &Id) |
Protected Attributes | |
filters_type | m_filters |
Container holding all active filters. More... | |
Private Types | |
typedef FrameBufferInterface::Scanner | scanner_type |
typedef FrameBufferInterface::Scanner | scanner_type |
Private Member Functions | |
virtual void | filter (const char_type *Begin, const char_type *End) |
Perform filtering operations on the stream. More... | |
virtual void | filter (const char_type *Begin, const char_type *End) |
Perform filtering operations on the stream. More... | |
Private Attributes | |
std::ostringstream | accumulated_buffer |
boost::scoped_array< char_type > | buffer_cache |
bool | buffer_user_supplied |
State of user supplied buffer. More... | |
bool | m_auto_delete |
std::string | m_stream_id |
boost::shared_ptr< FrHeader > | file_header |
boost::shared_ptr< FrHeader > | file_header_base |
bool | frame_file_cached |
FrameSpec::Info * | frame_spec |
boost::shared_ptr< FrameH > | frame_h |
FrameSpec::Info::frame_object_types | frame_h_id |
const char * | frame_h_name |
boost::shared_ptr< FrEndOfFile > | fr_end_of_file |
FrameSpec::Info::frame_object_types | fr_end_of_file_id |
const char * | fr_end_of_file_name |
boost::shared_ptr< FrSH > | fr_sh |
boost::shared_ptr< StreamRefInterface > | stream_ref |
size_type | next_block_size |
size_type | position |
INT_2U | frame_count |
start_time_type | start_time |
start_time_type | end_time |
Static Private Attributes | |
static const size_type | RESET_NEXT_BLOCK_SIZE |
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 |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Type specifying the container holding the active filters.
|
protectedinherited |
Type specifying the container holding the active filters.
|
private |
|
private |
|
inherited |
type for number of bytes to read and size of buffer
|
inherited |
type for number of bytes to read and size of buffer
|
inherited |
|
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.
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. |
|
virtual |
Destructor.
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
protectedvirtualinherited |
Initialization of the buffer.
Implements FrameCPP::Common::FrameBufferInterface.
|
protectedvirtualinherited |
Initialization of the buffer.
Implements FrameCPP::Common::FrameBufferInterface.
|
inlineinherited |
Retrieve the string identification of the buffer.
|
inherited |
Retrieve the string identification of the buffer.
|
inlineprotectedinherited |
|
protectedinherited |
|
inlineinherited |
Retrieve the duration of the stream.
|
inherited |
Retrieve the duration of the stream.
|
privatevirtualinherited |
Perform filtering operations on the stream.
|
privatevirtualinherited |
Perform filtering operations on the stream.
Implements FrameCPP::Common::FrameBufferInterface.
|
inlineinherited |
|
virtualinherited |
Adds a filter to the stream.
[in] | Filter | Filter function to add to the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >, and FrameCPP::Common::FrameBuffer< BT >.
|
virtualinherited |
Adds a filter to the stream.
[in] | Filter | Filter function to add to the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >, and FrameCPP::Common::FrameBuffer< BT >.
|
inherited |
|
inherited |
|
inherited |
Returns true if filtering happens internally; false otherwise.
Filtering currently is not optimized at the this layer so this method will always return false.
|
inherited |
Returns true if filtering happens internally; false otherwise.
|
pure virtualinherited |
Implemented in FrameCPP::Common::FrameBuffer< BT >, FrameCPP::Common::BaseMemoryBufferT< BT >, FrameCPP::Common::MemoryBufferT< BT >, FrameCPP::Common::FrameBuffer< BT >, FrameCPP::Common::BaseMemoryBufferT< BT >, FrameCPP::Common::MemoryBufferT< BT >, FrameCPP::Common::FrameBuffer< BT >, and FrameCPP::Common::BaseMemoryBufferT< BT >.
|
virtualinherited |
Removes a filter from the stream.
[in] | Filter | Filter function to remove from the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >, and FrameCPP::Common::FrameBuffer< BT >.
|
virtualinherited |
Removes a filter from the stream.
[in] | Filter | Filter function to remove from the stream |
Reimplemented in FrameCPP::Common::FrameBuffer< BT >, and 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.
|
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.
|
inherited |
Return the number of bytes to be made available.
|
inlineinherited |
Return the current position in the stream being scanned.
|
inherited |
Return the current position in the stream being scanned.
|
inlineinherited |
Check if a complete frame file is ready for processing.
|
inherited |
Check if a complete frame file is ready for processing.
|
virtual |
Initialize buffer to accumulate a frame file.
Reimplemented from FrameCPP::Common::FrameBufferInterface::Scanner.
|
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.
|
protectedvirtualinherited |
Routine to register if the caller has specified a buffer.
|
inlineinherited |
Retrieve the start time of the stream.
|
inherited |
Retrieve the start time of the stream.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
private |
|
privateinherited |
|
privateinherited |
State of user supplied buffer.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
staticinherited |
The default size for buffered input and output.
|
staticinherited |
|
protectedinherited |
Container holding all active filters.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
staticprivateinherited |
|
privateinherited |
|
privateinherited |