ldas-tools-framecpp  2.9.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO Class Reference

#include <FrTOCProcDataClassicIO.hh>

Inheritance diagram for FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO:
Inheritance graph
[legend]
Collaboration diagram for FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO:
Collaboration graph
[legend]

Classes

class  input_iterator
 

Public Types

typedef INT_4U nproc_type
 
typedef INT_4U nproc_type
 
typedef INT_4U nproc_type
 
typedef STRING name_type
 
typedef STRING name_type
 
typedef STRING name_type
 
typedef INT_8U position_type
 
typedef INT_8U position_type
 
typedef INT_8U position_type
 
typedef std::vector< position_typeproc_info_type
 
typedef std::vector< position_typeproc_info_type
 
typedef std::vector< position_typeproc_info_type
 
typedef std::map< name_type, proc_info_typeMapProc_type
 
typedef std::map< name_type, proc_info_typeMapProc_type
 
typedef std::map< name_type, proc_info_typeMapProc_type
 

Public Member Functions

 FrTOCProcDataClassicIO ()=default
 Default constructor. More...
 
Common::FrameSpec::size_type Bytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
void QueryProc (const Common::TOCInfo &Info, INT_4U FrameOffset, INT_8U Position)
 Gather TOC info for FrProcData being written. More...
 
const FrTOCProcDataClassicIOoperator= (const Previous::FrTOCProcData &Source)
 asignment operator More...
 
FrTOCProcDataClassicIOoperator= (FrTOCProcDataClassicIO &&TOC)
 
bool operator== (const FrTOCProcDataClassicIO &RHS) const
 equality operator More...
 
void Load (istream_type &Stream, INT_4U FrameCount)
 Read contents from stream. More...
 
 FrTOCProcDataClassicIO ()=default
 Default constructor. More...
 
Common::FrameSpec::size_type Bytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
void QueryProc (const Common::TOCInfo &Info, INT_4U FrameOffset, INT_8U Position)
 Gather TOC info for FrProcData being written. More...
 
const FrTOCProcDataClassicIOoperator= (const Previous::FrTOCProcData &Source)
 asignment operator More...
 
FrTOCProcDataClassicIOoperator= (FrTOCProcDataClassicIO &&TOC)
 
bool operator== (const FrTOCProcDataClassicIO &RHS) const
 equality operator More...
 
void Load (istream_type &Stream, INT_4U FrameCount)
 Read contents from stream. More...
 
 FrTOCProcDataClassicIO ()=default
 Default constructor. More...
 
Common::FrameSpec::size_type Bytes (const Common::StreamBase &Stream) const
 Number of bytes needed to write this structure. More...
 
void QueryProc (const Common::TOCInfo &Info, INT_4U FrameOffset, INT_8U Position)
 Gather TOC info for FrProcData being written. More...
 
const FrTOCProcDataClassicIOoperator= (const Previous::FrTOCProcData &Source)
 asignment operator More...
 
FrTOCProcDataClassicIOoperator= (FrTOCProcDataClassicIO &&TOC)
 
bool operator== (const FrTOCProcDataClassicIO &RHS) const
 equality operator More...
 
void Load (istream_type &Stream, INT_4U FrameCount)
 Read contents from stream. More...
 
const key_container_typeGetKeys () const
 Retrieve the keys. More...
 
const key_container_typeGetKeys () const
 Retrieve the keys. More...
 
const key_container_typeGetKeys () const
 Retrieve the keys. More...
 
const MapProc_typeGetProc () const
 Return all channels. More...
 
MapProc_type::const_iterator GetProc (const std::string &Channel) const
 Return the indexed data for a named channel. More...
 
MapProc_type::const_iterator GetProc (INT_4U Channel) const
 Return the indexed data for a named channel. More...
 
const MapProc_typeGetProc () const
 Return all channels. More...
 
MapProc_type::const_iterator GetProc (const std::string &Channel) const
 Return the indexed data for a named channel. More...
 
MapProc_type::const_iterator GetProc (INT_4U Channel) const
 Return the indexed data for a named channel. More...
 
const MapProc_typeGetProc () const
 Return all channels. More...
 
MapProc_type::const_iterator GetProc (const std::string &Channel) const
 Return the indexed data for a named channel. More...
 
MapProc_type::const_iterator GetProc (INT_4U Channel) const
 Return the indexed data for a named channel. More...
 

Static Public Member Functions

template<typename SE >
static void Description (Common::Description &Desc)
 The description of structure. More...
 
template<typename SE >
static void Description (Common::Description &Desc)
 The description of structure. More...
 
template<typename SE >
static void Description (Common::Description &Desc)
 The description of structure. More...
 

Protected Member Functions

void cachePositions (istream_type &Stream)
 TOC optimization. More...
 
void forEach (Common::FrTOC::query_info_type Info, Common::FrTOC::FunctionBase &Action) const
 Iterate over contents. More...
 
void setPositionsOffset (istream_type &Stream)
 
void write (Common::OStream &Stream) const
 Write the structure to the stream. More...
 
void cachePositions (istream_type &Stream)
 TOC optimization. More...
 
void forEach (Common::FrTOC::query_info_type Info, Common::FrTOC::FunctionBase &Action) const
 Iterate over contents. More...
 
void setPositionsOffset (istream_type &Stream)
 
void write (Common::OStream &Stream) const
 Write the structure to the stream. More...
 
void cachePositions (istream_type &Stream)
 TOC optimization. More...
 
void forEach (Common::FrTOC::query_info_type Info, Common::FrTOC::FunctionBase &Action) const
 Iterate over contents. More...
 
void setPositionsOffset (istream_type &Stream)
 
void write (Common::OStream &Stream) const
 Write the structure to the stream. More...
 

Protected Attributes

key_container_type m_keys
 
MapProc_type m_info
 

Private Types

typedef std::vector< position_typeinfo_type
 
typedef std::map< name_type, info_typeMap_type
 
typedef std::vector< name_typekey_container_type
 
typedef std::vector< position_typepositions_cache_type
 
typedef INT_4U frame_count_type
 
typedef INT_4U n_type
 
typedef std::vector< position_typeinfo_type
 
typedef std::map< name_type, info_typeMap_type
 
typedef std::vector< name_typekey_container_type
 
typedef std::vector< position_typepositions_cache_type
 
typedef INT_4U frame_count_type
 
typedef INT_4U n_type
 
typedef std::vector< position_typeinfo_type
 
typedef std::map< name_type, info_typeMap_type
 
typedef std::vector< name_typekey_container_type
 
typedef std::vector< position_typepositions_cache_type
 
typedef INT_4U frame_count_type
 
typedef INT_4U n_type
 

Private Attributes

frame_count_type frame_count { 0 }
 
positions_cache_type positions_cache
 
position_type positions_cache_offset { 0 }
 

Member Typedef Documentation

◆ frame_count_type [1/3]

◆ frame_count_type [2/3]

◆ frame_count_type [3/3]

◆ info_type [1/3]

◆ info_type [2/3]

◆ info_type [3/3]

◆ key_container_type [1/3]

◆ key_container_type [2/3]

◆ key_container_type [3/3]

◆ Map_type [1/3]

◆ Map_type [2/3]

◆ Map_type [3/3]

◆ MapProc_type [1/3]

◆ MapProc_type [2/3]

◆ MapProc_type [3/3]

◆ n_type [1/3]

◆ n_type [2/3]

◆ n_type [3/3]

◆ name_type [1/3]

◆ name_type [2/3]

◆ name_type [3/3]

◆ nproc_type [1/3]

◆ nproc_type [2/3]

◆ nproc_type [3/3]

◆ position_type [1/3]

◆ position_type [2/3]

◆ position_type [3/3]

◆ positions_cache_type [1/3]

◆ positions_cache_type [2/3]

◆ positions_cache_type [3/3]

◆ proc_info_type [1/3]

◆ proc_info_type [2/3]

◆ proc_info_type [3/3]

Constructor & Destructor Documentation

◆ FrTOCProcDataClassicIO() [1/3]

FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::FrTOCProcDataClassicIO ( )
default

Default constructor.

◆ FrTOCProcDataClassicIO() [2/3]

FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::FrTOCProcDataClassicIO ( )
default

Default constructor.

◆ FrTOCProcDataClassicIO() [3/3]

FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::FrTOCProcDataClassicIO ( )
default

Default constructor.

Member Function Documentation

◆ Bytes() [1/3]

Common::FrameSpec::size_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Bytes ( const Common::StreamBase Stream) const
inline

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.

◆ Bytes() [2/3]

Common::FrameSpec::size_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Bytes ( const Common::StreamBase Stream) const
inline

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.

◆ Bytes() [3/3]

Common::FrameSpec::size_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Bytes ( const Common::StreamBase Stream) const
inline

Number of bytes needed to write this structure.

Parameters
[in]StreamThe stream from which to the object is being read or written.
Returns
The number of bytes need to read or write this object.

◆ cachePositions() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::cachePositions ( istream_type Stream)
inlineprotected

TOC optimization.

This method optimizes the TOC reading by only reading the structure offsets. Once read, it is moved into the structure.

◆ cachePositions() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::cachePositions ( istream_type Stream)
inlineprotected

TOC optimization.

This method optimizes the TOC reading by only reading the structure offsets. Once read, it is moved into the structure.

◆ cachePositions() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::cachePositions ( istream_type Stream)
inlineprotected

TOC optimization.

This method optimizes the TOC reading by only reading the structure offsets. Once read, it is moved into the structure.

◆ Description() [1/3]

template<typename SE >
static void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Description ( Common::Description Desc)
inlinestatic

The description of structure.

Parameters
[out]DescStorage for the description of the structure.
Returns
A Description object which describes this structure as specified by the frame specification.

◆ Description() [2/3]

template<typename SE >
static void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Description ( Common::Description Desc)
inlinestatic

The description of structure.

Parameters
[out]DescStorage for the description of the structure.
Returns
A Description object which describes this structure as specified by the frame specification.

◆ Description() [3/3]

template<typename SE >
static void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Description ( Common::Description Desc)
inlinestatic

The description of structure.

Parameters
[out]DescStorage for the description of the structure.
Returns
A Description object which describes this structure as specified by the frame specification.

◆ forEach() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::forEach ( Common::FrTOC::query_info_type  Info,
Common::FrTOC::FunctionBase &  Action 
) const
inlineprotected

Iterate over contents.

Parameters
[in]InfoSpecifies the type of information to be searched.
[in]ActionAction to be taken for each piece of information found.

◆ forEach() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::forEach ( Common::FrTOC::query_info_type  Info,
Common::FrTOC::FunctionBase &  Action 
) const
inlineprotected

Iterate over contents.

Parameters
[in]InfoSpecifies the type of information to be searched.
[in]ActionAction to be taken for each piece of information found.

◆ forEach() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::forEach ( Common::FrTOC::query_info_type  Info,
Common::FrTOC::FunctionBase &  Action 
) const
inlineprotected

Iterate over contents.

Parameters
[in]InfoSpecifies the type of information to be searched.
[in]ActionAction to be taken for each piece of information found.

◆ GetKeys() [1/3]

const key_container_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetKeys ( ) const
inlineinherited

Retrieve the keys.

Returns
Constant container of keys.

◆ GetKeys() [2/3]

const key_container_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetKeys ( ) const
inlineinherited

Retrieve the keys.

Returns
Constant container of keys.

◆ GetKeys() [3/3]

const key_container_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetKeys ( ) const
inlineinherited

Retrieve the keys.

Returns
Constant container of keys.

◆ GetProc() [1/9]

const MapProc_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( ) const
inlineinherited

Return all channels.

Returns
Constant container to the indexed FrProcData elements.

◆ GetProc() [2/9]

const MapProc_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( ) const
inlineinherited

Return all channels.

Returns
Constant container to the indexed FrProcData elements.

◆ GetProc() [3/9]

const MapProc_type& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( ) const
inlineinherited

Return all channels.

Returns
Constant container to the indexed FrProcData elements.

◆ GetProc() [4/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( const std::string &  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe name of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ GetProc() [5/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( const std::string &  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe name of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ GetProc() [6/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( const std::string &  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe name of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ GetProc() [7/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( INT_4U  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe numeric offset of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ GetProc() [8/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( INT_4U  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe numeric offset of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ GetProc() [9/9]

MapProc_type::const_iterator FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::GetProc ( INT_4U  Channel) const
inlineinherited

Return the indexed data for a named channel.

Parameters
[in]ChannelThe numeric offset of the channel.
Returns
Constant iterator to the indexed FrProcData element.

◆ Load() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Load ( istream_type Stream,
INT_4U  FrameCount 
)

Read contents from stream.

Parameters
[in]StreamThe stream from which the object is being read.
Returns
A new instance of this object.

◆ Load() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Load ( istream_type Stream,
INT_4U  FrameCount 
)

Read contents from stream.

Parameters
[in]StreamThe stream from which the object is being read.
Returns
A new instance of this object.

◆ Load() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::Load ( istream_type Stream,
INT_4U  FrameCount 
)

Read contents from stream.

Parameters
[in]StreamThe stream from which the object is being read.
Returns
A new instance of this object.

◆ operator=() [1/6]

const FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( const Previous::FrTOCProcData &  Source)
inline

asignment operator

Parameters
[in]SourceThe source to be copied.

◆ operator=() [2/6]

const FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( const Previous::FrTOCProcData &  Source)
inline

asignment operator

Parameters
[in]SourceThe source to be copied.

◆ operator=() [3/6]

const FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( const Previous::FrTOCProcData &  Source)
inline

asignment operator

Parameters
[in]SourceThe source to be copied.

◆ operator=() [4/6]

FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( FrTOCProcDataClassicIO &&  TOC)
inline

◆ operator=() [5/6]

FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( FrTOCProcDataClassicIO &&  TOC)
inline

◆ operator=() [6/6]

FrTOCProcDataClassicIO& FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator= ( FrTOCProcDataClassicIO &&  TOC)
inline

◆ operator==() [1/3]

bool FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator== ( const FrTOCProcDataClassicIO RHS) const

equality operator

Parameters
[in]RHSThe FrTOCProcData object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ operator==() [2/3]

bool FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator== ( const FrTOCProcDataClassicIO RHS) const

equality operator

Parameters
[in]RHSThe FrTOCProcData object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ operator==() [3/3]

bool FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::operator== ( const FrTOCProcDataClassicIO RHS) const

equality operator

Parameters
[in]RHSThe FrTOCProcData object to be compared.
Returns
The value true is returned if this object is equivelent to the RHS instance; false otherwise.

◆ QueryProc() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::QueryProc ( const Common::TOCInfo Info,
INT_4U  FrameOffset,
INT_8U  Position 
)
inline

Gather TOC info for FrProcData being written.

Parameters
[in]InfoInformation
[in]FrameOffsetThe frame offset of the frame being written. The frame offsets start at 0 (zero).
[in]PositionThe byte offset from the start of the file where the structure is written.

◆ QueryProc() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::QueryProc ( const Common::TOCInfo Info,
INT_4U  FrameOffset,
INT_8U  Position 
)
inline

Gather TOC info for FrProcData being written.

Parameters
[in]InfoInformation
[in]FrameOffsetThe frame offset of the frame being written. The frame offsets start at 0 (zero).
[in]PositionThe byte offset from the start of the file where the structure is written.

◆ QueryProc() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::QueryProc ( const Common::TOCInfo Info,
INT_4U  FrameOffset,
INT_8U  Position 
)
inline

Gather TOC info for FrProcData being written.

Parameters
[in]InfoInformation
[in]FrameOffsetThe frame offset of the frame being written. The frame offsets start at 0 (zero).
[in]PositionThe byte offset from the start of the file where the structure is written.

◆ setPositionsOffset() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::setPositionsOffset ( istream_type Stream)
inlineprotected

◆ setPositionsOffset() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::setPositionsOffset ( istream_type Stream)
inlineprotected

◆ setPositionsOffset() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::setPositionsOffset ( istream_type Stream)
inlineprotected

◆ write() [1/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::write ( Common::OStream Stream) const
inlineprotected

Write the structure to the stream.

Parameters
[in]StreamThe output stream where the object is to be written.

◆ write() [2/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::write ( Common::OStream Stream) const
inlineprotected

Write the structure to the stream.

Parameters
[in]StreamThe output stream where the object is to be written.

◆ write() [3/3]

void FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::write ( Common::OStream Stream) const
inlineprotected

Write the structure to the stream.

Parameters
[in]StreamThe output stream where the object is to be written.

Member Data Documentation

◆ frame_count

frame_count_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::frame_count { 0 }
private

◆ m_info

MapProc_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::m_info
protectedinherited

◆ m_keys

key_container_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataData::m_keys
protectedinherited

◆ positions_cache

positions_cache_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::positions_cache
private

A cache of the positions of the FrAdcData structures within the stream.

◆ positions_cache_offset

position_type FrameCPP::Version_8::FrTOCImpl::FrTOCProcDataClassicIO::positions_cache_offset { 0 }
private

The number of bytes from the end of the stream where the array containing the FrAdcData offsets.


The documentation for this class was generated from the following file: