ldas-tools-frameAPI  2.5.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ResampleRawFrame Class Reference

#include <rdsresample.hh>

Inheritance diagram for ResampleRawFrame:
RDSFrame

Public Types

typedef INT_2U resample_type
 
typedef RDSFrame::frame_file_container_type frame_file_container_type
 
typedef RDSFrame::channel_container_type channel_container_type
 
typedef std::vector< resample_typeresample_arg_container_type
 
typedef LDASTools::AL::unordered_map< std::string, std::pair< INT_2U, LDASTools::AL::SharedPtr< Filters::ResampleBase > > > resample_container_type
 

Public Member Functions

 ResampleRawFrame (const char *frame_files, const char *channels, const char *Resampling, const RDSFrame::Options &UserOptions)
 Constructor. More...
 
 ResampleRawFrame (const frame_file_container_type &frame_files, const channel_container_type &channels, const resample_container_type &Resampling, const RDSFrame::Options &UserOptions)
 Constructor. More...
 
virtual ~ResampleRawFrame ()
 

Static Public Member Functions

static resample_container_type Resample (const channel_container_type &Channels, const std::vector< INT_2U > &Resampling)
 

Protected Member Functions

virtual void processChannel (fr_adc_data_type Adc)
 
virtual void processChannel (fr_proc_data_type Proc)
 
virtual stop_request_type stopRequest () const
 

Private Types

enum  stop_request_type { STOP_DATA, STOP_USER }
 
typedef ::FrameAPI::RDS::Options Options
 
typedef LDASTools::AL::SharedPtr< RDSStreamstream_type
 
typedef LDASTools::AL::GPSTime time_type
 
typedef LDASTools::AL::SharedPtr< FrameCPP::FrameH > frame_h_type
 
typedef LDASTools::AL::SharedPtr< FrameCPP::FrAdcData > fr_adc_data_type
 
typedef LDASTools::AL::SharedPtr< FrameCPP::FrProcData > fr_proc_data_type
 
typedef std::vector< std::string >::const_iterator stringv_const_iterator
 

Private Member Functions

INT_4U GetNumberOfChannels () const
 
INT_4U GetNumberOfFrameGroups () const
 
INT_4U GetNumberOfFrameFiles () const
 
void ProcessRequest (stream_type Output)
 
template<typename Functor >
void foreachChannel (Functor &Func) const
 
FrameCPP::FrameH::procData_type * getResultProcData ()
 
const std::string & getChannelName (INT_4U Offset) const
 

Static Private Member Functions

static FrameCPP::FrProcData * getProcChannel (const std::string &name, FrameCPP::FrameH::procData_type *const proc)
 return: FrameCPP::FrProcData* - A pointer to the channel object. More...
 
static const std::string & getHistoryName ()
 

Private Attributes

Options m_options
 
frame_h_type mResultFrame
 
LDASTools::AL::SharedPtr< RDSStreamm_stream
 

Member Typedef Documentation

◆ channel_container_type

◆ frame_file_container_type

◆ resample_arg_container_type

◆ resample_container_type

typedef LDASTools::AL::unordered_map< std::string, std::pair< INT_2U, LDASTools::AL::SharedPtr< Filters::ResampleBase > > > ResampleRawFrame::resample_container_type

◆ resample_type

Constructor & Destructor Documentation

◆ ResampleRawFrame() [1/2]

ResampleRawFrame::ResampleRawFrame ( const char *  frame_files,
const char *  channels,
const char *  Resampling,
const RDSFrame::Options UserOptions 
)

Constructor.

Parameters
[in]frame_filesA list of frame file names.
[in]channelsA list of channels to extract from original frames (only channel names are allowed).
[in]ResamplingA list of resampling values which corrisponds to the channels.
[in]UserOptionsUser specified options.
Returns
A new instance of this object

◆ ResampleRawFrame() [2/2]

ResampleRawFrame::ResampleRawFrame ( const frame_file_container_type frame_files,
const channel_container_type channels,
const resample_container_type Resampling,
const RDSFrame::Options UserOptions 
)

Constructor.

Parameters
[in]frame_filesA list of frame file names.
[in]channelsA list of channels to extract from original frames (only channel names are allowed).
[in]ResamplingA list of resampling values which corrisponds to the channels.
[in]UserOptionsUser specified options.
Returns
A new instance of this object

◆ ~ResampleRawFrame()

ResampleRawFrame::~ResampleRawFrame ( )
virtual

Member Function Documentation

◆ processChannel() [1/2]

void ResampleRawFrame::processChannel ( fr_adc_data_type  Adc)
protectedvirtual

Implements RDSFrame.

◆ processChannel() [2/2]

void ResampleRawFrame::processChannel ( fr_proc_data_type  Proc)
protectedvirtual

Implements RDSFrame.

◆ Resample()

ResampleRawFrame::resample_container_type ResampleRawFrame::Resample ( const channel_container_type Channels,
const std::vector< INT_2U > &  Resampling 
)
static

◆ stopRequest()

ResampleRawFrame::stop_request_type ResampleRawFrame::stopRequest ( ) const
protectedvirtual

Implements RDSFrame.


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