RENEWLab  1.1.0
RENEW project
Utils Class Reference

#include <utils.h>

Public Member Functions

 Utils ()
 
 ~Utils ()
 

Static Public Member Functions

static std::vector< size_t > strToChannels (const std::string &channel)
 
static std::vector< std::complex< float > > cint16_to_cfloat (const std::vector< std::complex< int16_t >> &in)
 
static std::vector< std::complex< int16_t > > cfloat_to_cint16 (const std::vector< std::complex< float >> &in)
 
static std::vector< std::complex< int16_t > > float_to_cint16 (const std::vector< std::vector< float >> &in)
 
static std::vector< std::complex< float > > uint32tocfloat (const std::vector< uint32_t > &in, const std::string &order)
 
static std::vector< uint32_t > cint16_to_uint32 (const std::vector< std::complex< int16_t >> &in, bool conj, const std::string &order)
 
static std::vector< std::vector< size_t > > loadSlots (const std::vector< std::string > &frames, char sym)
 
static void loadDevices (const std::string &filename, std::vector< std::string > &data)
 
static void loadData (const char *filename, std::vector< std::complex< int16_t >> &data, int samples)
 
static void loadData (const char *filename, std::vector< unsigned > &data, int samples)
 
static void loadTDDConfig (const std::string &filename, std::string &jconfig)
 
static std::vector< std::string > split (const std::string &s, char delimiter)
 
static void printVector (std::vector< std::complex< int16_t >> &data)
 

Constructor & Destructor Documentation

◆ Utils()

Utils::Utils ( )

◆ ~Utils()

Utils::~Utils ( )

Member Function Documentation

◆ cfloat_to_cint16()

std::vector< std::complex< int16_t > > Utils::cfloat_to_cint16 ( const std::vector< std::complex< float >> &  in)
static
Here is the caller graph for this function:

◆ cint16_to_cfloat()

std::vector< std::complex< float > > Utils::cint16_to_cfloat ( const std::vector< std::complex< int16_t >> &  in)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cint16_to_uint32()

std::vector< uint32_t > Utils::cint16_to_uint32 ( const std::vector< std::complex< int16_t >> &  in,
bool  conj,
const std::string &  order 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ float_to_cint16()

std::vector< std::complex< int16_t > > Utils::float_to_cint16 ( const std::vector< std::vector< float >> &  in)
static
Here is the caller graph for this function:

◆ loadData() [1/2]

void Utils::loadData ( const char *  filename,
std::vector< std::complex< int16_t >> &  data,
int  samples 
)
static
Here is the call graph for this function:

◆ loadData() [2/2]

void Utils::loadData ( const char *  filename,
std::vector< unsigned > &  data,
int  samples 
)
static
Here is the call graph for this function:

◆ loadDevices()

void Utils::loadDevices ( const std::string &  filename,
std::vector< std::string > &  data 
)
static
Here is the call graph for this function:

◆ loadSlots()

std::vector< std::vector< size_t > > Utils::loadSlots ( const std::vector< std::string > &  frames,
char  sym 
)
static
Here is the caller graph for this function:

◆ loadTDDConfig()

void Utils::loadTDDConfig ( const std::string &  filename,
std::string &  jconfig 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printVector()

void Utils::printVector ( std::vector< std::complex< int16_t >> &  data)
static
Here is the call graph for this function:

◆ split()

std::vector< std::string > Utils::split ( const std::string &  s,
char  delimiter 
)
static

◆ strToChannels()

std::vector< size_t > Utils::strToChannels ( const std::string &  channel)
static
Here is the caller graph for this function:

◆ uint32tocfloat()

std::vector< std::complex< float > > Utils::uint32tocfloat ( const std::vector< uint32_t > &  in,
const std::string &  order 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

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