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

#include <ParameterCast.h>

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

Public Member Functions

 Toggle (BaseLib::SharedObjects *baseLib)
 
 Toggle (BaseLib::SharedObjects *baseLib, xml_node *node, const PParameter &parameter)
 
 ~Toggle () 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

std::string parameter
 
int32_t on = 200
 
int32_t off = 0
 

Additional Inherited Members

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

Constructor & Destructor Documentation

§ Toggle() [1/2]

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

§ Toggle() [2/2]

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

§ ~Toggle()

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

Member Function Documentation

§ fromPacket()

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

§ toPacket()

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

Member Data Documentation

§ off

int32_t BaseLib::DeviceDescription::ParameterCast::Toggle::off = 0

§ on

int32_t BaseLib::DeviceDescription::ParameterCast::Toggle::on = 200

§ parameter

std::string BaseLib::DeviceDescription::ParameterCast::Toggle::parameter

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