#include <IOStream.hh>
Classes | |
class | Pointer |
Public Types | |
typedef std::ostream | ostream_type |
typedef ostream_type::char_type | char_type |
typedef FrameBufferInterface | buffer_type |
typedef std::ostream | ostream_type |
typedef ostream_type::char_type | char_type |
typedef FrameBufferInterface | buffer_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
typedef boost::shared_ptr< FrameSpec::Object > | object_type |
typedef const Dictionary::streamref_type::element_type * | const_stream_ref_ptr_type |
typedef const Dictionary::streamref_type::element_type * | const_stream_ref_ptr_type |
typedef Dictionary::streamref_type | streamref_type |
typedef Dictionary::streamref_type | streamref_type |
Public Member Functions | |
OStream (buffer_type *Buffer, bool AutoDelete=true) | |
virtual | ~OStream () |
void | Compression (INT_2U &CompressionScheme, INT_2U &CompressionLevel) |
INT_2U | CompressionScheme () const |
INT_2U | CompressionLevel () const |
template<typename Header> | |
const Header * | GetFrHeader () const |
virtual INT_4U | GetTOCChecksum () const |
virtual INT_8U | GetTOCOffset () 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 |
OStream & | write (const char_type *S, std::streamsize N) |
object_type | Pop () |
Get an object from the output queue. | |
void | PushSingle (object_type Obj) |
Append an object to the output queue. | |
template<typename Iter> | |
void | PushMulti (Iter Start, Iter End, size_t Size) |
Append multiple objects to the output queue. | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (object_type Cur) const |
Create a PTR_STRUCT for next object. | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (const object_type::element_type *Cur) const |
Create a PTR_STRUCT for next object. | |
virtual INT_4U | GetNumberOfFrames () const |
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) |
buffer_type * | rdbuf () const |
CheckSumFilter * | GetCheckSumFile () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumFrame () const |
void | SetCheckSumFrame (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumObject () const |
void | SetCheckSumObject (const CheckSum::kind_type Type) |
OStream (buffer_type *Buffer, bool AutoDelete=true) | |
virtual | ~OStream () |
void | Compression (INT_2U &CompressionScheme, INT_2U &CompressionLevel) |
INT_2U | CompressionScheme () const |
INT_2U | CompressionLevel () const |
template<typename Header> | |
const Header * | GetFrHeader () const |
virtual INT_4U | GetTOCChecksum () const |
virtual INT_8U | GetTOCOffset () 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 |
OStream & | write (const char_type *S, std::streamsize N) |
object_type | Pop () |
Get an object from the output queue. | |
void | PushSingle (object_type Obj) |
Append an object to the output queue. | |
template<typename Iter> | |
void | PushMulti (Iter Start, Iter End, size_t Size) |
Append multiple objects to the output queue. | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (object_type Cur) const |
Create a PTR_STRUCT for next object. | |
const Common::PTR_STRUCT_BASE & | NextPtrStruct (const object_type::element_type *Cur) const |
Create a PTR_STRUCT for next object. | |
virtual INT_4U | GetNumberOfFrames () const |
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) |
buffer_type * | rdbuf () const |
CheckSumFilter * | GetCheckSumFile () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumFrame () const |
void | SetCheckSumFrame (const CheckSum::kind_type Type) |
CheckSumFilter * | GetCheckSumObject () const |
void | SetCheckSumObject (const CheckSum::kind_type Type) |
template<> | |
OStream & | operator<< (const LDASTools::AL::GPSTime &Data) |
template<> | |
OStream & | operator<< (const LDASTools::AL::GPSTime &Data) |
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 () |
Protected Types | |
typedef FrameSpec::ObjectInterface::unique_object_type | unique_object_type |
typedef FrameSpec::ObjectInterface::unique_object_type | unique_object_type |
typedef std::unique_ptr< CheckSumFilter > | checksum_filter_type |
typedef std::unique_ptr< CheckSumFilter > | checksum_filter_type |
typedef std::unique_ptr< MD5SumFilter > | md5sum_filter_type |
typedef std::unique_ptr< MD5SumFilter > | md5sum_filter_type |
typedef LDASTools::AL::unordered_map< INT_2U, INT_2U > | streamid_to_fsiid_type |
typedef LDASTools::AL::unordered_map< INT_2U, INT_2U > | streamid_to_fsiid_type |
typedef boost::shared_ptr< PTR_STRUCT_BASE > | ptr_struct_base_type |
typedef boost::shared_ptr< PTR_STRUCT_BASE > | ptr_struct_base_type |
Protected Member Functions | |
void | setFrHeader (unique_object_type &Obj) |
void | setAutoDeleteBuffer (const bool Value) |
Establish if the buffer is to be released with the Stream. | |
void | setFrHeader (unique_object_type &Obj) |
void | setAutoDeleteBuffer (const bool Value) |
Establish if the buffer is to be released with the Stream. | |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
const FrameSpec::Info & | frameSpecInfo () const |
virtual void | frameSpecInfo (const FrameSpec::Info *Spec) |
Protected Attributes | |
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. | |
checksum_filter_type | m_frame_checksum |
Checksum for frame. | |
checksum_filter_type | m_obj_checksum |
Checksum for object. | |
md5sum_filter_type | m_file_md5sum |
MD5Sum value for the files. | |
Private Types | |
typedef std::unique_ptr< buffer_type > | buffer_ptr_type |
typedef std::list< object_type > | object_queue_type |
typedef std::unique_ptr< buffer_type > | buffer_ptr_type |
typedef std::list< object_type > | object_queue_type |
typedef LDASTools::AL::unordered_map< std::string, INT_2U, LDASTools::AL::hash< std::string >, LDASTools::AL::CaseInsensitiveCmp > | cntocid_mapping_type |
typedef LDASTools::AL::unordered_map< std::string, INT_2U, LDASTools::AL::hash< std::string >, LDASTools::AL::CaseInsensitiveCmp > | cntocid_mapping_type |
Private Member Functions | |
template<typename T> | |
const FrameSpec::Object * | object_ptr (boost::shared_ptr< T > Obj) |
template<typename T> | |
const FrameSpec::Object * | object_ptr (const T *Obj) |
template<typename T> | |
const FrameSpec::Object * | object_ptr (boost::shared_ptr< T > Obj) |
template<typename T> | |
const FrameSpec::Object * | object_ptr (const T *Obj) |
template<> | |
const FrameSpec::Object * | object_ptr (const FrStatData *Obj) |
template<> | |
const FrameSpec::Object * | object_ptr (const FrStatData *Obj) |
Static Private Member Functions | |
static bool | initialize () |
static bool | initialize () |
static void | cleanup_at_exit () |
static void | cleanup_at_exit () |
Private Attributes | |
unique_object_type | m_file_header |
buffer_ptr_type | m_buffer |
bool | m_buffer_auto_delete |
bool | m_filter_internally |
object_queue_type | m_write_objects |
object_queue_type::iterator | m_write_objects_pos |
INT_2U | m_compression_scheme |
INT_2U | m_compression_level |
const FrameSpec::Info * | m_frame_spec |
cmn_streamsize_type | m_ptr_struct_bytes |
Static Private Attributes | |
static const bool | m_initialized = StreamBase::initialize( ) |
static cntocid_mapping_type | m_class_name_to_class_id |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
protectedinherited |
|
private |
|
private |
|
inherited |
|
inherited |
typedef std::ostream FrameCPP::Common::OStream::ostream_type |
typedef std::ostream FrameCPP::Common::OStream::ostream_type |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
protected |
|
protected |
|
inline |
|
inlinevirtual |
FrameCPP::Common::OStream::OStream | ( | buffer_type * | Buffer, |
bool | AutoDelete = true ) |
|
virtual |
|
virtualinherited |
Reimplemented in anonymous_namespace{FrEvent.cc}::IStream, anonymous_namespace{FrEvent.cc}::IStream, anonymous_namespace{FrSimEvent.cc}::IStream, anonymous_namespace{FrSimEvent.cc}::IStream, FrameCPP::Common::IFrameStream, FrameCPP::Common::IFrameStream, FrameCPP::Common::IStream, FrameCPP::Common::IStream, FrameCPP::Version_6::IStream, FrameCPP::Version_6::IStream, FrameCPP::Version_7::IStream, and FrameCPP::Version_7::IStream.
|
virtualinherited |
Reimplemented in anonymous_namespace{FrEvent.cc}::IStream, anonymous_namespace{FrEvent.cc}::IStream, anonymous_namespace{FrSimEvent.cc}::IStream, anonymous_namespace{FrSimEvent.cc}::IStream, FrameCPP::Common::IFrameStream, FrameCPP::Common::IFrameStream, FrameCPP::Common::IStream, FrameCPP::Common::IStream, FrameCPP::Version_6::IStream, FrameCPP::Version_6::IStream, FrameCPP::Version_7::IStream, and FrameCPP::Version_7::IStream.
|
staticprivateinherited |
|
staticprivateinherited |
|
inline |
param[in,out] CompressionScheme param[in,out] CompressionType
void FrameCPP::Common::OStream::Compression | ( | INT_2U & | CompressionScheme, |
INT_2U & | CompressionLevel ) |
param[in,out] CompressionScheme param[in,out] CompressionType
|
inline |
INT_2U FrameCPP::Common::OStream::CompressionLevel | ( | ) | const |
|
inline |
INT_2U FrameCPP::Common::OStream::CompressionScheme | ( | ) | const |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented in FrameCPP::Common::FrameStream, and FrameCPP::Common::FrameStream.
|
protectedvirtualinherited |
Reimplemented in FrameCPP::Common::FrameStream, and FrameCPP::Common::FrameStream.
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumFile | ( | ) | const |
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumFrame | ( | ) | const |
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumObject | ( | ) | const |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inline |
const Header * FrameCPP::Common::OStream::GetFrHeader | ( | ) | const |
|
inlineinherited |
|
inherited |
|
inlinevirtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
virtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
virtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
virtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
virtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
virtual |
Reimplemented in FrameCPP::Common::OFrameStream, FrameCPP::Common::OFrameStream, OFrameStream, and OFrameStream.
|
staticprivateinherited |
|
staticprivateinherited |
OStream::object_type FrameCPP::Common::OStream::Next | ( | object_type | Obj | ) | const |
object_type FrameCPP::Common::OStream::Next | ( | object_type | Obj | ) | const |
void FrameCPP::Common::OStream::Next | ( | object_type | Obj, |
object_type | NextObj ) |
void FrameCPP::Common::OStream::Next | ( | object_type | Obj, |
object_type | NextObj ) |
const PTR_STRUCT_BASE & FrameCPP::Common::OStream::NextPtrStruct | ( | const object_type::element_type * | Cur | ) | const |
Create a PTR_STRUCT for next object.
const Common::PTR_STRUCT_BASE & FrameCPP::Common::OStream::NextPtrStruct | ( | const object_type::element_type * | Cur | ) | const |
Create a PTR_STRUCT for next object.
const PTR_STRUCT_BASE & FrameCPP::Common::OStream::NextPtrStruct | ( | object_type | Cur | ) | const |
Create a PTR_STRUCT for next object.
const Common::PTR_STRUCT_BASE & FrameCPP::Common::OStream::NextPtrStruct | ( | object_type | Cur | ) | const |
Create a PTR_STRUCT for next object.
|
inlineprivate |
|
private |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
OStream & FrameCPP::Common::OStream::operator<< | ( | const std::vector< DT > & | N | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
OStream & FrameCPP::Common::OStream::operator<< | ( | object_type | Data | ) |
|
inline |
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.
object_type FrameCPP::Common::OStream::Pop | ( | ) |
Get an object from the output queue.
|
inlineinherited |
|
inherited |
|
inline |
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. |
|
inline |
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. |
|
inline |
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.
void FrameCPP::Common::OStream::PushSingle | ( | object_type | Obj | ) |
Append an object to the output queue.
[in] | Obj | The object to be written. |
|
inline |
|
inline |
const PTR_STRUCT_BASE & FrameCPP::Common::OStream::Reference | ( | object_type | Obj | ) | const |
const PTR_STRUCT_BASE & FrameCPP::Common::OStream::Reference | ( | object_type | Obj | ) | const |
|
inherited |
|
inherited |
|
inlineprotected |
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. |
|
protected |
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. |
|
inline |
void FrameCPP::Common::OStream::SetCheckSumFile | ( | const CheckSum::kind_type | Type | ) |
|
inline |
void FrameCPP::Common::OStream::SetCheckSumFrame | ( | const CheckSum::kind_type | Type | ) |
|
inline |
void FrameCPP::Common::OStream::SetCheckSumObject | ( | const CheckSum::kind_type | Type | ) |
|
inlineprotected |
|
protected |
|
private |
|
private |
|
staticprivateinherited |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
Checksum for file.
|
private |
|
protectedinherited |
MD5Sum value for the files.
|
private |
|
protectedinherited |
Checksum for frame.
|
privateinherited |
|
staticprivateinherited |
|
protectedinherited |
|
protectedinherited |
Checksum for object.
|
mutableprivateinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
private |
|
private |