#include <FrTOCAdcDataClassicIO.hh>
Public Types | |
typedef INT_4U | nadc_type |
typedef INT_4U | nadc_type |
typedef std::string | name_type |
typedef std::string | name_type |
typedef INT_4U | channel_id_type |
typedef INT_4U | channel_id_type |
typedef INT_4U | group_id_type |
typedef INT_4U | group_id_type |
typedef INT_8U | position_type |
typedef INT_8U | position_type |
typedef std::vector< name_type > | key_container_type |
typedef std::vector< name_type > | key_container_type |
typedef std::map< name_type, adc_info_type > | MapADC_type |
Container of indexed FrAdcData elements. | |
typedef std::map< name_type, adc_info_type > | MapADC_type |
Container of indexed FrAdcData elements. | |
Public Member Functions | |
FrTOCAdcDataClassicIO ()=default | |
Default constructor. | |
Common::FrameSpec::size_type | Bytes (const Common::StreamBase &Stream) const |
Number of bytes needed to write this structure. | |
void | QueryAdc (const Common::TOCInfo &Info, INT_4U FrameOffset, INT_8U Position) |
Gather TOC info for FrAdcData being written. | |
const FrTOCAdcDataClassicIO & | operator= (const Previous::FrTOCAdcData &Source) |
asignment operator | |
FrTOCAdcDataClassicIO & | operator= (FrTOCAdcDataClassicIO &&TOC) |
FrTOCAdcDataClassicIO ()=default | |
Default constructor. | |
Common::FrameSpec::size_type | Bytes (const Common::StreamBase &Stream) const |
Number of bytes needed to write this structure. | |
void | QueryAdc (const Common::TOCInfo &Info, INT_4U FrameOffset, INT_8U Position) |
Gather TOC info for FrAdcData being written. | |
const FrTOCAdcDataClassicIO & | operator= (const Previous::FrTOCAdcData &Source) |
asignment operator | |
FrTOCAdcDataClassicIO & | operator= (FrTOCAdcDataClassicIO &&TOC) |
const MapADC_type & | GetADC () const |
Return all channels. | |
MapADC_type::const_iterator | GetADC (const std::string &Name) const |
Return the indexed data for a named channel. | |
MapADC_type::const_iterator | GetADC (INT_4U Channel) const |
Return the indexed data for an indexed channel. | |
const MapADC_type & | GetADC () const |
Return all channels. | |
MapADC_type::const_iterator | GetADC (const std::string &Name) const |
Return the indexed data for a named channel. | |
MapADC_type::const_iterator | GetADC (INT_4U Channel) const |
Return the indexed data for an indexed channel. | |
const key_container_type & | GetKeys () const |
Retrieve the keys. | |
const key_container_type & | GetKeys () const |
Retrieve the keys. | |
bool | operator== (const FrTOCAdcData &RHS) const |
equality operator | |
bool | operator== (const FrTOCAdcData &RHS) const |
equality operator | |
Static Public Member Functions | |
template<typename SE> | |
static void | Description (Common::Description &Desc) |
The description of structure. | |
template<typename SE> | |
static void | Description (Common::Description &Desc) |
The description of structure. | |
Public Attributes | |
position_type | m_positions_start |
Protected Member Functions | |
void | Load (istream_type &Stream, INT_4U FrameCount) |
Read contents from stream. | |
void | forEach (Common::FrTOC::query_info_type Info, Common::FrTOC::FunctionBase &Action) const |
Iterate over contents. | |
void | cachePositions (istream_type &Stream) |
Cache where the positions of the Adc channels. | |
void | seekPositions (istream_type &Stream, channel_id_type Channel) |
Advance to the specified Adc channel. | |
void | seekPositions (istream_type &Stream, const std::string &Channel) |
Advance to the specified Adc channel. | |
void | write (Common::OStream &Stream) const |
Write the structure to the stream. | |
void | Load (istream_type &Stream, INT_4U FrameCount) |
Read contents from stream. | |
void | forEach (Common::FrTOC::query_info_type Info, Common::FrTOC::FunctionBase &Action) const |
Iterate over contents. | |
void | cachePositions (istream_type &Stream) |
Cache where the positions of the Adc channels. | |
void | seekPositions (istream_type &Stream, channel_id_type Channel) |
Advance to the specified Adc channel. | |
void | seekPositions (istream_type &Stream, const std::string &Channel) |
Advance to the specified Adc channel. | |
void | write (Common::OStream &Stream) const |
Write the structure to the stream. | |
Protected Attributes | |
key_container_type | m_keys |
MapADC_type | m_info |
Private Types | |
typedef LDASTools::AL::unordered_map< std::string, INT_4U > | reverse_lookup_type |
typedef std::vector< position_type > | positions_cache_type |
typedef LDASTools::AL::unordered_map< std::string, INT_4U > | reverse_lookup_type |
typedef std::vector< position_type > | positions_cache_type |
Private Member Functions | |
MapADC_type & | getADC () |
MapADC_type::iterator | getADC (const std::string &Channel) |
MapADC_type::iterator | getADC (INT_4U Channel) |
reverse_lookup_type::mapped_type | reverse_lookup (const reverse_lookup_type::key_type &Key) const |
MapADC_type & | getADC () |
MapADC_type::iterator | getADC (const std::string &Channel) |
MapADC_type::iterator | getADC (INT_4U Channel) |
reverse_lookup_type::mapped_type | reverse_lookup (const reverse_lookup_type::key_type &Key) const |
Private Attributes | |
positions_cache_type | positions_cache |
position_type | positions_cache_offset |
reverse_lookup_type | reverse_lookup_ |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
private |
|
private |
|
private |
|
private |
|
default |
Default constructor.
|
default |
Default constructor.
|
inline |
Number of bytes needed to write this structure.
[in] | Stream | The stream from which to the object is being read or written. |
|
inline |
Number of bytes needed to write this structure.
[in] | Stream | The stream from which to the object is being read or written. |
|
inlineprotected |
Cache where the positions of the Adc channels.
[in,out] | Stream | The Stream being read |
|
inlineprotected |
Cache where the positions of the Adc channels.
[in,out] | Stream | The Stream being read |
|
inlinestatic |
The description of structure.
[out] | Desc | Storage for the description of the structure. |
|
inlinestatic |
The description of structure.
[out] | Desc | Storage for the description of the structure. |
|
inlineprotected |
Iterate over contents.
[in] | Info | Specifies the type of information to be searched. |
[in] | Action | Action to be taken for each piece of information found. |
|
inlineprotected |
Iterate over contents.
[in] | Info | Specifies the type of information to be searched. |
[in] | Action | Action to be taken for each piece of information found. |
|
inlineinherited |
Return all channels.
|
inlineinherited |
Return all channels.
|
inlineinherited |
Return the indexed data for a named channel.
[in] | Channel | The name of the channel. |
|
inherited |
Return the indexed data for a named channel.
[in] | Channel | The name of the channel. |
|
inlineinherited |
Return the indexed data for an indexed channel.
[in] | Channel | The numeric offset of the channel. |
|
inherited |
Return the indexed data for an indexed channel.
[in] | Channel | The numeric offset of the channel. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineinherited |
Retrieve the keys.
|
inlineinherited |
Retrieve the keys.
|
protected |
Read contents from stream.
[in] | Stream | The stream from which the object is being read. |
|
protected |
Read contents from stream.
[in] | Stream | The stream from which the object is being read. |
|
inline |
asignment operator
[in] | Source | The source to be copied. |
|
inline |
asignment operator
[in] | Source | The source to be copied. |
|
inline |
|
inline |
|
inherited |
equality operator
[in] | RHS | The FrTOCAdcData object to be compared. |
|
inherited |
equality operator
[in] | RHS | The FrTOCAdcData object to be compared. |
|
inline |
Gather TOC info for FrAdcData being written.
[in] | Info | Information |
[in] | FrameOffset | The frame offset of the frame being written. The frame offsets start at 0 (zero). |
[in] | Position | The byte offset from the start of the file where the structure is written. |
|
inline |
Gather TOC info for FrAdcData being written.
[in] | Info | Information |
[in] | FrameOffset | The frame offset of the frame being written. The frame offsets start at 0 (zero). |
[in] | Position | The byte offset from the start of the file where the structure is written. |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
Advance to the specified Adc channel.
[in,out] | Stream | The Stream being read |
[in] | Channel | The requested channel |
|
inlineprotected |
Advance to the specified Adc channel.
[in,out] | Stream | The Stream being read |
[in] | Channel | The requested channel |
|
inlineprotected |
Advance to the specified Adc channel.
[in,out] | Stream | The Stream being read |
[in] | Channel | The requested channel |
|
inlineprotected |
Advance to the specified Adc channel.
[in,out] | Stream | The Stream being read |
[in] | Channel | The requested channel |
|
inlineprotected |
Write the structure to the stream.
[in] | Stream | The output stream where the object is to be written. |
|
inlineprotected |
Write the structure to the stream.
[in] | Stream | The output stream where the object is to be written. |
|
protectedinherited |
|
protectedinherited |
position_type FrameCPP::Version_8::FrTOCImpl::FrTOCAdcDataClassicIO::m_positions_start |
|
private |
A cache of the positions of the FrAdcData structures within the stream.
|
private |
The number of bytes from the end of the stream where the array containing the FrAdcData offsets.
|
mutableprivate |
Provide means where a channel index can be mapped to a channel name