ldas-tools-framecpp
2.7.0
|
#include <FrameStream.hh>
Classes | |
struct | detector_cmp |
Public Types | |
typedef OStream::buffer_type | buffer_type |
typedef INT_4U | chkSum_type |
typedef OStream::buffer_type | buffer_type |
typedef INT_4U | chkSum_type |
typedef FrHeader::frame_library_type | frame_library_type |
typedef FrHeader::frame_library_type | frame_library_type |
typedef FrHeader::library_revision_type | library_revision_type |
typedef FrHeader::library_revision_type | library_revision_type |
typedef FrameSpec::version_type | version_type |
typedef FrameSpec::version_type | version_type |
typedef const StreamRefInterface * | streamref_interface_type |
typedef const StreamRefInterface * | streamref_interface_type |
typedef INT_4U | fr_event_offset_type |
typedef INT_4U | fr_event_offset_type |
typedef INT_4U | fr_sim_event_offset_type |
typedef INT_4U | fr_sim_event_offset_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
Public Member Functions | |
OFrameStream (buffer_type *Buffer, INT_2U Version=FRAME_SPEC_CURRENT) | |
OFrameStream (bool AutoDelete, buffer_type *Buffer, INT_2U Version=FRAME_SPEC_CURRENT) | |
~OFrameStream () | |
void | Close () |
void | DisableTOC () |
virtual INT_4U | GetNumberOfFrames () const |
virtual INT_8U | GetTOCOffset () const |
void | SetAutoDeleteBuffer (const bool AutoDelete) |
Establish if the buffer is to be released with the Stream. More... | |
void | SetMD5Sum (bool Value) |
void | Write (object_type Obj) |
void | WriteFrame (object_type FrameObject, chkSum_type FrameChecksumType=Common::CheckSum::NONE) |
Write Frame data to the stream. More... | |
void | WriteFrame (object_type FrameObject, INT_2U CompressionScheme, INT_2U CompressionLevel, chkSum_type FrameChecksumType=CheckSum::NONE) |
Write Frame data to the stream. More... | |
void | WriteFrStatData (object_type FrameObject) |
OFrameStream (buffer_type *Buffer, INT_2U Version=FRAME_SPEC_CURRENT) | |
OFrameStream (bool AutoDelete, buffer_type *Buffer, INT_2U Version=FRAME_SPEC_CURRENT) | |
~OFrameStream () | |
void | Close () |
void | DisableTOC () |
virtual INT_4U | GetNumberOfFrames () const |
virtual INT_8U | GetTOCOffset () const |
void | SetAutoDeleteBuffer (const bool AutoDelete) |
Establish if the buffer is to be released with the Stream. More... | |
void | SetMD5Sum (bool Value) |
void | Write (object_type Obj) |
void | WriteFrame (object_type FrameObject, chkSum_type FrameChecksumType=Common::CheckSum::NONE) |
Write Frame data to the stream. More... | |
void | WriteFrame (object_type FrameObject, INT_2U CompressionScheme, INT_2U CompressionLevel, chkSum_type FrameChecksumType=CheckSum::NONE) |
Write Frame data to the stream. More... | |
void | WriteFrStatData (object_type FrameObject) |
buffer_type * | rdbuf () const |
buffer_type * | rdbuf () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
buffer_type * | rdbuf () const |
buffer_type * | rdbuf () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
frame_library_type | FrameLibrary () const |
frame_library_type | FrameLibrary () const |
library_revision_type | LibraryRevision () const |
library_revision_type | LibraryRevision () const |
version_type | Version () const |
version_type | Version () const |
const std::string & | GetLastError () const |
const std::string & | GetLastError () const |
const MD5Sum & | GetMD5Sum () const |
const MD5Sum & | GetMD5Sum () const |
Protected Member Functions | |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
void | setLastError (const std::string &Message) |
void | setLastError (const std::string &Message) |
void | setTOC () |
void | setTOC () |
const StreamRefInterface & | streamRef () const |
const StreamRefInterface & | streamRef () const |
void | version_stream (version_type Version) |
void | version_stream (version_type Version) |
void | frameLibrary (frame_library_type FrameLibrary) |
void | frameLibrary (frame_library_type FrameLibrary) |
void | libraryRevision (library_revision_type LibraryRevision) |
void | libraryRevision (library_revision_type LibraryRevision) |
version_type | memoryVersion () const |
version_type | memoryVersion () const |
version_type | streamVersion () const |
version_type | streamVersion () const |
virtual void | reset () |
virtual void | reset () |
virtual void | Cleanup () |
virtual void | Cleanup () |
INT_2U | GetClassId (const std::string &ClassName) const |
INT_2U | GetClassId (const std::string &ClassName) const |
INT_2U | GetFSIId (INT_2U StreamId) const |
INT_2U | GetFSIId (INT_2U StreamId) const |
cmn_streamsize_type | PtrStructBytes () const |
cmn_streamsize_type | PtrStructBytes () const |
const_stream_ref_ptr_type | ReferenceStreamRef () const |
const_stream_ref_ptr_type | ReferenceStreamRef () const |
const Dictionary & | GetDictionary () const |
Dictionary & | GetDictionary () |
const Dictionary & | GetDictionary () const |
Dictionary & | GetDictionary () |
void | Compression (INT_2U &CompressionScheme, INT_2U &CompressionLevel) |
void | Compression (INT_2U &CompressionScheme, INT_2U &CompressionLevel) |
INT_2U | CompressionScheme () const |
INT_2U | CompressionScheme () const |
INT_2U | CompressionLevel () const |
INT_2U | CompressionLevel () const |
template<typename Header > | |
const Header * | GetFrHeader () const |
template<typename Header > | |
const Header * | GetFrHeader () const |
void | Next (object_type Obj, object_type NextObj) |
object_type | Next (object_type Obj) const |
void | Next (object_type Obj, object_type NextObj) |
object_type | Next (object_type Obj) const |
const PTR_STRUCT_BASE & | Reference (object_type Obj) const |
const PTR_STRUCT_BASE & | Reference (object_type Obj) const |
OStream & | write (const char_type *S, std::streamsize N) |
OStream & | write (const char_type *S, std::streamsize N) |
object_type | Pop () |
Get an object from the output queue. More... | |
object_type | Pop () |
Get an object from the output queue. More... | |
void | PushSingle (object_type Obj) |
Append an object to the output queue. More... | |
void | PushSingle (object_type Obj) |
Append an object to the output queue. More... | |
template<typename Iter > | |
void | PushMulti (Iter Start, Iter End, size_t Size) |
Append multiple objects to the output queue. More... | |
template<typename Iter > | |
void | PushMulti (Iter Start, Iter End, size_t Size) |
Append multiple objects to the output queue. More... | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (object_type Cur) const |
Create a PTR_STRUCT for next object. More... | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (const object_type::element_type *Cur) const |
Create a PTR_STRUCT for next object. More... | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (object_type Cur) const |
Create a PTR_STRUCT for next object. More... | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (const object_type::element_type *Cur) const |
Create a PTR_STRUCT for next object. More... | |
OStream & | operator<< (object_type Data) |
OStream & | operator<< (Pointer Data) |
template<typename T , const std::string &(T::*)() const F> | |
OStream & | operator<< (const SearchContainer< T, F > &SC) |
template<typename T > | |
OStream & | operator<< (const Container< T > &C) |
template<typename L > | |
OStream & | operator<< (const STRING< L > &String) |
template<typename L > | |
OStream & | operator<< (const STRING_SHADOW< L > &String) |
template<typename L > | |
OStream & | operator<< (const std::vector< STRING< L > > &Strings) |
template<typename DT > | |
OStream & | operator<< (const std::vector< DT > &N) |
template<typename DT > | |
OStream & | operator<< (const DT &N) |
OStream & | operator<< (object_type Data) |
OStream & | operator<< (Pointer Data) |
template<typename T , const std::string &(T::*)() const F> | |
OStream & | operator<< (const SearchContainer< T, F > &SC) |
template<typename T > | |
OStream & | operator<< (const Container< T > &C) |
template<typename L > | |
OStream & | operator<< (const STRING< L > &String) |
template<typename L > | |
OStream & | operator<< (const STRING_SHADOW< L > &String) |
template<typename L > | |
OStream & | operator<< (const std::vector< STRING< L > > &Strings) |
template<typename DT > | |
OStream & | operator<< (const std::vector< DT > &N) |
template<typename DT > | |
OStream & | operator<< (const DT &N) |
template<> | |
OStream & | operator<< (const LDASTools::AL::GPSTime &Data) |
buffer_type * | rdbuf () const |
CheckSumFilter * | GetCheckSumFile () const |
CheckSumFilter * | GetCheckSumFile () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumFrame () const |
CheckSumFilter * | GetCheckSumFrame () const |
void | SetCheckSumFrame (const CheckSum::kind_type Type) |
void | SetCheckSumFrame (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumObject () const |
CheckSumFilter * | GetCheckSumObject () const |
void | SetCheckSumObject (const CheckSum::kind_type Type) |
void | SetCheckSumObject (const CheckSum::kind_type Type) |
void | setFrHeader (unique_object_type &Obj) |
void | setFrHeader (unique_object_type &Obj) |
void | setAutoDeleteBuffer (const bool Value) |
Establish if the buffer is to be released with the Stream. More... | |
void | setAutoDeleteBuffer (const bool Value) |
Establish if the buffer is to be released with the Stream. More... | |
Protected Attributes | |
bool | m_closed_state |
std::unique_ptr< MD5SumFilter > | m_md5sumFilter |
Dictionary | m_dictionary |
object_type | m_null_stream_ref |
ptr_struct_base_type | m_ptr_struct_object |
streamid_to_fsiid_type | m_stream_id_to_fsi_id |
checksum_filter_type | m_file_checksum |
Checksum for file. More... | |
checksum_filter_type | m_frame_checksum |
Checksum for frame. More... | |
checksum_filter_type | m_obj_checksum |
Checksum for object. More... | |
md5sum_filter_type | m_file_md5sum |
MD5Sum value for the files. More... | |
Private Types | |
typedef boost::shared_ptr< FrDetector > | fr_detector_type |
typedef boost::shared_ptr< FrStatData > | fr_stat_data_type |
typedef std::set< INT_2U > | defined_container_type |
typedef std::list< fr_stat_data_type > | fr_stat_list_type |
typedef std::map< fr_detector_type, fr_stat_list_type, detector_cmp > | fr_stat_container_type |
typedef boost::shared_ptr< FrDetector > | fr_detector_type |
typedef boost::shared_ptr< FrStatData > | fr_stat_data_type |
typedef std::set< INT_2U > | defined_container_type |
typedef std::list< fr_stat_data_type > | fr_stat_list_type |
typedef std::map< fr_detector_type, fr_stat_list_type, detector_cmp > | fr_stat_container_type |
Private Member Functions | |
void | init () |
void | write_stream_objects () |
void | init () |
void | write_stream_objects () |
Private Attributes | |
boost::shared_ptr< FrTOC > | m_toc |
INT_8U | m_toc_location |
INT_4U | m_frame_count |
defined_container_type | m_defined |
fr_stat_container_type | m_fr_stats |
bool | m_has_header |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
typedef INT_4U FrameCPP::Common::OFrameStream::chkSum_type |
typedef INT_4U FrameCPP::Common::OFrameStream::chkSum_type |
|
inherited |
|
inherited |
|
private |
|
private |
|
private |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
FrameCPP::Common::OFrameStream::OFrameStream | ( | buffer_type * | Buffer, |
INT_2U | Version = FRAME_SPEC_CURRENT |
||
) |
FrameCPP::Common::OFrameStream::OFrameStream | ( | bool | AutoDelete, |
buffer_type * | Buffer, | ||
INT_2U | Version = FRAME_SPEC_CURRENT |
||
) |
FrameCPP::Common::OFrameStream::~OFrameStream | ( | ) |
FrameCPP::Common::OFrameStream::OFrameStream | ( | buffer_type * | Buffer, |
INT_2U | Version = FRAME_SPEC_CURRENT |
||
) |
FrameCPP::Common::OFrameStream::OFrameStream | ( | bool | AutoDelete, |
buffer_type * | Buffer, | ||
INT_2U | Version = FRAME_SPEC_CURRENT |
||
) |
FrameCPP::Common::OFrameStream::~OFrameStream | ( | ) |
|
virtualinherited |
Reimplemented in FrameCPP::Common::IStream, FrameCPP::Common::IStream, FrameCPP::Common::IFrameStream, and FrameCPP::Common::IFrameStream.
|
virtualinherited |
Reimplemented in FrameCPP::Common::IStream, FrameCPP::Common::IStream, FrameCPP::Common::IFrameStream, and FrameCPP::Common::IFrameStream.
void FrameCPP::Common::OFrameStream::Close | ( | ) |
void FrameCPP::Common::OFrameStream::Close | ( | ) |
|
inlineinherited |
param[in,out] CompressionScheme param[in,out] CompressionType
|
inherited |
param[in,out] CompressionScheme param[in,out] CompressionType
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inline |
void FrameCPP::Common::OFrameStream::DisableTOC | ( | ) |
|
inherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented from FrameCPP::Common::StreamBase.
|
protectedvirtualinherited |
Reimplemented from FrameCPP::Common::StreamBase.
|
inlineprotectedinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlinevirtual |
Reimplemented from FrameCPP::Common::OStream.
|
virtual |
Reimplemented from FrameCPP::Common::OStream.
|
virtual |
Reimplemented from FrameCPP::Common::OStream.
|
inlinevirtual |
Reimplemented from FrameCPP::Common::OStream.
|
private |
|
private |
|
inlineinherited |
|
inherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Create a PTR_STRUCT for next object.
|
inherited |
Create a PTR_STRUCT for next object.
|
inherited |
Create a PTR_STRUCT for next object.
|
inherited |
Create a PTR_STRUCT for next object.
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get an object from the output queue.
This method retieves the next object to be written along with information indicating if the object should be deallocated once written.
|
inherited |
Get an object from the output queue.
|
inlineinherited |
|
inherited |
|
inlineinherited |
Append multiple objects to the output queue.
[in] | Start | The first element to be added to the queue. |
[in] | End | The last element to be added to the queue. |
[in] | Size | The number of elements to be added to the queue. |
|
inlineinherited |
Append multiple objects to the output queue.
[in] | Start | The first element to be added to the queue. |
[in] | End | The last element to be added to the queue. |
[in] | Size | The number of elements to be added to the queue. |
|
inherited |
Append an object to the output queue.
[in] | Obj | The object to be written. |
|
inlineinherited |
Append an object to the output queue.
[in] | Obj | The object to be written. |
This method adds an object to the queue of objects to be written. It preserves the order in which the objects should be written to the stream by keeping a local iterator indicating the point of insertion.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedvirtualinherited |
Reimplemented in FrameCPP::Common::IFrameStream, and FrameCPP::Common::IFrameStream.
|
protectedvirtualinherited |
Reimplemented in FrameCPP::Common::IFrameStream, and FrameCPP::Common::IFrameStream.
|
inline |
Establish if the buffer is to be released with the Stream.
[in] | AutoDelete | If true, then the buffer will be released with the destruction of this instance. If false, then the buffer will exist even after the destruction of this instance. |
void FrameCPP::Common::OFrameStream::SetAutoDeleteBuffer | ( | const bool | AutoDelete | ) |
Establish if the buffer is to be released with the Stream.
[in] | AutoDelete | If true, then the buffer will be released with the destruction of this instance. If false, then the buffer will exist even after the destruction of this instance. |
|
inlineprotectedinherited |
Establish if the buffer is to be released with the Stream.
[in] | Value | If true, then the buffer will be released with the destruction of this instance. If false, then the buffer will exist even after the destruction of this instance. |
|
protectedinherited |
Establish if the buffer is to be released with the Stream.
[in] | Value | If true, then the buffer will be released with the destruction of this instance. If false, then the buffer will exist even after the destruction of this instance. |
void FrameCPP::Common::OStream::SetCheckSumFile |
void FrameCPP::Common::OStream::SetCheckSumFile |
|
inline |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
inline |
void FrameCPP::Common::OFrameStream::SetMD5Sum | ( | bool | Value | ) |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inherited |
|
protectedinherited |
|
inlineprotectedinherited |
void FrameCPP::Common::OFrameStream::Write | ( | object_type | Obj | ) |
void FrameCPP::Common::OFrameStream::Write | ( | object_type | Obj | ) |
|
inlineinherited |
|
private |
|
private |
void FrameCPP::Common::OFrameStream::WriteFrame | ( | object_type | FrameObject, |
chkSum_type | FrameChecksumType = Common::CheckSum::NONE |
||
) |
Write Frame data to the stream.
void FrameCPP::Common::OFrameStream::WriteFrame | ( | object_type | FrameObject, |
chkSum_type | FrameChecksumType = Common::CheckSum::NONE |
||
) |
Write Frame data to the stream.
void FrameCPP::Common::OFrameStream::WriteFrame | ( | object_type | FrameObject, |
INT_2U | CompressionScheme, | ||
INT_2U | CompressionLevel, | ||
chkSum_type | FrameChecksumType = CheckSum::NONE |
||
) |
Write Frame data to the stream.
void FrameCPP::Common::OFrameStream::WriteFrame | ( | object_type | FrameObject, |
INT_2U | CompressionScheme, | ||
INT_2U | CompressionLevel, | ||
chkSum_type | FrameChecksumType = CheckSum::NONE |
||
) |
Write Frame data to the stream.
void FrameCPP::Common::OFrameStream::WriteFrStatData | ( | object_type | FrameObject | ) |
void FrameCPP::Common::OFrameStream::WriteFrStatData | ( | object_type | FrameObject | ) |
|
protectedinherited |
|
private |
|
protectedinherited |
|
protectedinherited |
Checksum for file.
|
protectedinherited |
MD5Sum value for the files.
|
private |
|
protectedinherited |
Checksum for frame.
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Checksum for object.
|
protectedinherited |
|
mutableprotectedinherited |
|
private |
|
private |