libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::DeviceDescription::ParameterCast::Round Class Reference

#include <ParameterCast.h>

Inheritance diagram for BaseLib::DeviceDescription::ParameterCast::Round:
BaseLib::DeviceDescription::ParameterCast::ICast

Public Member Functions

 Round (BaseLib::SharedObjects *baseLib)
 
 Round (BaseLib::SharedObjects *baseLib, xml_node *node, const PParameter &parameter)
 
 ~Round () override=default
 
void fromPacket (PVariable &value) override
 
void toPacket (PVariable &value) override
 
- Public Member Functions inherited from BaseLib::DeviceDescription::ParameterCast::ICast
 ICast (BaseLib::SharedObjects *baseLib)
 
 ICast (BaseLib::SharedObjects *baseLib, xml_node *node, const PParameter &parameter)
 
virtual ~ICast ()=default
 
virtual bool needsBinaryPacketData ()
 

Public Attributes

bool roundToPoint5 = false
 
int32_t decimalPlaces = 1
 

Additional Inherited Members

- Protected Attributes inherited from BaseLib::DeviceDescription::ParameterCast::ICast
BaseLib::SharedObjects_bl = nullptr
 
const std::weak_ptr< Parameter_parameter
 

Constructor & Destructor Documentation

§ Round() [1/2]

BaseLib::DeviceDescription::ParameterCast::Round::Round ( BaseLib::SharedObjects baseLib)
explicit

§ Round() [2/2]

BaseLib::DeviceDescription::ParameterCast::Round::Round ( BaseLib::SharedObjects baseLib,
xml_node node,
const PParameter parameter 
)
explicit

§ ~Round()

BaseLib::DeviceDescription::ParameterCast::Round::~Round ( )
overridedefault

Member Function Documentation

§ fromPacket()

void BaseLib::DeviceDescription::ParameterCast::Round::fromPacket ( PVariable value)
overridevirtual

§ toPacket()

void BaseLib::DeviceDescription::ParameterCast::Round::toPacket ( PVariable value)
overridevirtual

Member Data Documentation

§ decimalPlaces

int32_t BaseLib::DeviceDescription::ParameterCast::Round::decimalPlaces = 1

§ roundToPoint5

bool BaseLib::DeviceDescription::ParameterCast::Round::roundToPoint5 = false

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