Class waveform_generator

Inheritance Relationships

Base Type

Class Documentation

class waveform_generator : public rcppsw::patterns::factory::releasing_factory<base_waveform, std::string, const config::waveform_config*>

Factory to create waveforms of different types given the name of a waveform. Valid names are:

Public Functions

waveform_generator(void)
std::unique_ptr<base_waveform> operator()(const std::string &name, const config::waveform_config *config)

Public Static Attributes

static const std::string kConstant = "constant"

Generate a constant_waveform.

static const std::string kNone = rconfig::constants::kNoValue

Generate a null_waveform.

static const std::string kSawtooth = "sawtooth"

Generate a sawtooth_waveform.

static const std::string kSine = "sine"

Generate a sine_waveform.

static const std::string kSquare = "square"

Generate a square_waveform.