Public Member Functions | Protected Member Functions | Private Attributes | List of all members
snBlockSerial Class Reference

class for serialization of the snBlocks class More...

#include <snBlockSerial.h>

Inheritance diagram for snBlockSerial:
snBlock snSDR snSDRStandard

Public Member Functions

 snBlockSerial (SNSignal pSNSignal)
 snBlockSerial constructor More...
 
Samples_Type get_absolute_sample () const
 returns the absolute amount of processed samples More...
 
- Public Member Functions inherited from snBlock
 snBlock (SNSignal pSNSignal)
 snBlock constructor More...
 
Blocks_Type getBlks ()
 returns current block number which is being processed More...
 
Blocks_Type getOutputBlks ()
 returns processed block number of a signal sink More...
 
Blocks_Type getTotalBlks ()
 returns total amount of blocks to be processed More...
 
double get_time_per_block ()
 
double get_blks_simulation_time ()
 returns current simulation time dependent on current block number More...
 
bool isActive ()
 returns snBlock status. will return true after requestStop() was called. More...
 
void requestStop ()
 requests to stop processing and return the snBlock main program in run() More...
 

Protected Member Functions

std::vector< std::complex
< double > > 
get_next_samples (Samples_Type n)
 returns the next samples More...
 
void InitSerialBuffer (Samples_Type size, ConcBuf *pConcBuf)
 initializes the serial buffer. Should be called by snBlocks in their constructor. More...
 
void set_next_sample_index (Samples_Type index)
 allows to go back to a specific samples position in the actual serial buffer More...
 
- Protected Member Functions inherited from snBlock
void snLog (QString mess)
 can be used by snBlocks to log data to log text widget. More...
 
void snLogErr (QString mess)
 
void snLogDeb (QString mess, int DebugLevel)
 can be used by snBlocks to log data to log text widget. More...
 
void increaseBlks ()
 has to be called by snBlocks after processing of the actual concbuf block More...
 
void increaseOutputBlks ()
 has to be called by the sink snBlocks after processing of the actual concbuf block More...
 
void printSummary (std::string caller)
 This member function prints a summary of how much data was processed after the calling snBlock's exit. More...
 

Private Attributes

std::vector< std::complex
< double > > * 
serBuf
 for an array that serializes the data coming from a concBuf More...
 
Samples_Type serbuf_last_sample
 
Samples_Type serbuf_actual_sample
 
Samples_Type SerBufSize
 
int SerBufStatus
 
bool stop_when_empty
 
ConcBufConcBuf1
 
long cBufSmpls
 
long maxBufSmpls
 
bool serbuf_initialized
 
Samples_Type absoluteSample
 

Additional Inherited Members

- Signals inherited from snBlock
void snLogSignal (const QString &mess)
 is connected in snMainWindow to the log text widget. More...
 
void snLogSignalDebug (const QString &mess, int d)
 is connected in snMainWindow to the log text widget. More...
 
- Protected Attributes inherited from snBlock
SNSignal Sig
 holds the simulation parameters which are common to all snBlocks More...
 
unsigned int plot_x_max
 
double max_simulation_length
 
Blocks_Type max_blocks
 

Detailed Description

class for serialization of the snBlocks class

Constructor & Destructor Documentation

snBlockSerial::snBlockSerial ( SNSignal  pSNSignal)

snBlockSerial constructor

Member Function Documentation

Samples_Type snBlockSerial::get_absolute_sample ( ) const
inline

returns the absolute amount of processed samples

std::vector< std::complex< double > > snBlockSerial::get_next_samples ( Samples_Type  n)
protected

returns the next samples

void snBlockSerial::InitSerialBuffer ( Samples_Type  size,
ConcBuf pConcBuf 
)
protected

initializes the serial buffer. Should be called by snBlocks in their constructor.

void snBlockSerial::set_next_sample_index ( Samples_Type  index)
protected

allows to go back to a specific samples position in the actual serial buffer

Member Data Documentation

Samples_Type snBlockSerial::absoluteSample
private
long snBlockSerial::cBufSmpls
private
ConcBuf* snBlockSerial::ConcBuf1
private
long snBlockSerial::maxBufSmpls
private
std::vector<std::complex<double> >* snBlockSerial::serBuf
private

for an array that serializes the data coming from a concBuf

Samples_Type snBlockSerial::serbuf_actual_sample
private
bool snBlockSerial::serbuf_initialized
private
Samples_Type snBlockSerial::serbuf_last_sample
private
Samples_Type snBlockSerial::SerBufSize
private
int snBlockSerial::SerBufStatus
private
bool snBlockSerial::stop_when_empty
private

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