#include <IOStream.hh>
Classes | |
class | Pointer |
Public Types | |
typedef std::ostream | ostream_type |
typedef std::ostream | ostream_type |
typedef ostream_type::char_type | char_type |
typedef ostream_type::char_type | char_type |
typedef FrameBufferInterface | buffer_type |
typedef FrameBufferInterface | buffer_type |
Public Member Functions | |
OStream (buffer_type *Buffer, bool AutoDelete=true) | |
OStream (buffer_type *Buffer, bool AutoDelete=true) | |
virtual | ~OStream () |
virtual | ~OStream () |
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 |
virtual INT_4U | GetTOCChecksum () const |
virtual INT_4U | GetTOCChecksum () const |
virtual INT_8U | GetTOCOffset () const |
virtual INT_8U | GetTOCOffset () 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. | |
object_type | Pop () |
Get an object from the output queue. | |
void | PushSingle (object_type Obj) |
Append an object to 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. | |
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. | |
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 |
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) |
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) |
template<> | |
OStream & | operator<< (const LDASTools::AL::GPSTime &Data) |
buffer_type * | rdbuf () const |
buffer_type * | rdbuf () const |
CheckSumFilter * | GetCheckSumFile () const |
CheckSumFilter * | GetCheckSumFile () const |
void | SetCheckSumFile (const CheckSum::kind_type Type) |
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) |
Protected Types | |
typedef FrameSpec::ObjectInterface::unique_object_type | unique_object_type |
typedef FrameSpec::ObjectInterface::unique_object_type | unique_object_type |
Protected Member Functions | |
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. | |
void | setAutoDeleteBuffer (const bool Value) |
Establish if the buffer is to be released with the Stream. | |
Private Types | |
typedef std::unique_ptr< buffer_type > | buffer_ptr_type |
typedef std::unique_ptr< buffer_type > | buffer_ptr_type |
typedef std::list< object_type > | object_queue_type |
typedef std::list< object_type > | object_queue_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) |
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 |
|
private |
|
private |
typedef FrameBufferInterface FrameCPP::Common::OStream::buffer_type |
typedef FrameBufferInterface FrameCPP::Common::OStream::buffer_type |
|
private |
|
private |
typedef std::ostream FrameCPP::Common::OStream::ostream_type |
typedef std::ostream FrameCPP::Common::OStream::ostream_type |
|
protected |
|
protected |
|
inline |
FrameCPP::Common::OStream::OStream | ( | buffer_type * | Buffer, |
bool | AutoDelete = true ) |
|
inlinevirtual |
|
virtual |
|
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 |
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumFile | ( | ) | const |
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumFrame | ( | ) | const |
|
inline |
CheckSumFilter * FrameCPP::Common::OStream::GetCheckSumObject | ( | ) | const |
|
inline |
const Header * FrameCPP::Common::OStream::GetFrHeader | ( | ) | const |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
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.
|
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 |
|
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |