Bits and Droids connector
Connect your microcontroller to handle MFS2020 commands.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
Output Class Reference

#include <output.h>

Public Member Functions

 Output ()
 
 Output (int id, std::string outputName, std::string metric, float updateEvery, int dataType, QString cbText, int prefix, int type)
 
void setPrefix (int prefixToSet)
 
void setId (int idToSet)
 
int getOffset ()
 
void setOffset (int offsetToSet)
 
void setOutputName (std::string outputNameToSet)
 
void setUpdateEvery (float updateEveryToSet)
 
void setType (int typeToSet)
 
void setCbText (QString cbTextToSet)
 
std::string getMetric ()
 
float getUpdateEvery ()
 
std::string getOutputName ()
 
int getId ()
 
int getPrefix ()
 
int getType ()
 
QString getCbText ()
 
QJsonObject toJson () const
 
void setDelay (uint8_t delayToSet)
 
uint8_t getDelay ()
 

Public Attributes

int test
 

Private Attributes

int id
 
int offset
 
std::string outputName
 
std::string metric
 
float updateEvery
 
uint8_t dataType
 
QString cbText
 
int prefix
 
uint8_t type
 
uint8_t delay = 0
 

Constructor & Destructor Documentation

◆ Output() [1/2]

Output::Output ( )

◆ Output() [2/2]

Output::Output ( int  id,
std::string  outputName,
std::string  metric,
float  updateEvery,
int  dataType,
QString  cbText,
int  prefix,
int  type 
)

Member Function Documentation

◆ getCbText()

QString Output::getCbText ( )
inline

◆ getDelay()

uint8_t Output::getDelay ( )

◆ getId()

int Output::getId ( )
inline

◆ getMetric()

std::string Output::getMetric ( )
inline

◆ getOffset()

int Output::getOffset ( )
inline

◆ getOutputName()

std::string Output::getOutputName ( )
inline

◆ getPrefix()

int Output::getPrefix ( )
inline

◆ getType()

int Output::getType ( )
inline

◆ getUpdateEvery()

float Output::getUpdateEvery ( )
inline

◆ setCbText()

void Output::setCbText ( QString  cbTextToSet)
inline

◆ setDelay()

void Output::setDelay ( uint8_t  delayToSet)

◆ setId()

void Output::setId ( int  idToSet)
inline

◆ setOffset()

void Output::setOffset ( int  offsetToSet)
inline

◆ setOutputName()

void Output::setOutputName ( std::string  outputNameToSet)
inline

◆ setPrefix()

void Output::setPrefix ( int  prefixToSet)
inline

◆ setType()

void Output::setType ( int  typeToSet)
inline

◆ setUpdateEvery()

void Output::setUpdateEvery ( float  updateEveryToSet)
inline

◆ toJson()

QJsonObject Output::toJson ( ) const

Member Data Documentation

◆ cbText

QString Output::cbText
private

◆ dataType

uint8_t Output::dataType
private

◆ delay

uint8_t Output::delay = 0
private

◆ id

int Output::id
private

◆ metric

std::string Output::metric
private

◆ offset

int Output::offset
private

◆ outputName

std::string Output::outputName
private

◆ prefix

int Output::prefix
private

◆ test

int Output::test

◆ type

uint8_t Output::type
private

◆ updateEvery

float Output::updateEvery
private

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