HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.

This module contains the classes that define and implement the Alert interface API. More...

+ Collaboration diagram for Alert:

Data Structures

struct  HF::Interfaces::Alert::Message
 Payload for the Status command. More...
 
struct  HF::Interfaces::Alert::State
 Helper class to handle the State attribute for the Alert interface. More...
 
struct  HF::Interfaces::Alert::Enable
 Helper class to handle the Enabled attribute for the Alert interface. More...
 
struct  HF::Interfaces::Alert::Base
 Alert Interface : Parent. More...
 
class  HF::Interfaces::Alert::Server
 Alert Interface : Server side implementation. More...
 
struct  HF::Interfaces::Alert::Client
 Alert Interface : Client side implementation. More...
 

Enumerations

enum  HF::Interfaces::Alert::CMD { HF::Interfaces::Alert::STATUS_CMD = 0x01 }
 Command IDs. More...
 
enum  HF::Interfaces::Alert::Attributes { HF::Interfaces::Alert::STATE_ATTR = 0x01, HF::Interfaces::Alert::ENABLE_ATTR = 0x02 }
 Attributes. More...
 

Functions

HF::Attributes::IAttributeHF::Interfaces::create_attribute (HF::Interfaces::Alert::Server *server, uint8_t uid)
 Create an attribute object that can hold the attribute with the given uid. More...
 
HF::Attributes::IAttributeHF::Interfaces::Alert::create_attribute (uint8_t uid)
 Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Alert::Server *,uint8_t) More...
 
std::ostream & operator<< (std::ostream &stream, const HF::Interfaces::Alert::CMD command)
 Convert the given command into a string and write it to the given stream. More...
 
std::ostream & operator<< (std::ostream &stream, const HF::Interfaces::Alert::Attributes attribute)
 Convert the given attribute into a string and write it to the given stream. More...
 

Detailed Description

This module contains the classes that define and implement the Alert interface API.

Enumeration Type Documentation

◆ Attributes

Attributes.

Enumerator
STATE_ATTR 

State attribute UID.

ENABLE_ATTR 

Enable attribute UID.

Definition at line 76 of file alert.h.

77  {
78  STATE_ATTR = 0x01,
79  ENABLE_ATTR = 0x02,
80  __LAST_ATTR__ = ENABLE_ATTR,
81  } Attributes;
State attribute UID.
Definition: alert.h:78
Attributes
Attributes.
Definition: alert.h:76
Enable attribute UID.
Definition: alert.h:79

◆ CMD

Command IDs.

Enumerator
STATUS_CMD 

Alert Status Command ID.

Definition at line 69 of file alert.h.

70  {
71  STATUS_CMD = 0x01,
72  __LAST_CMD__ = STATUS_CMD
73  } CMD;
CMD
Command IDs.
Definition: alert.h:69
Alert Status Command ID.
Definition: alert.h:71

Function Documentation

◆ create_attribute() [1/2]

HF::Attributes::IAttribute* HF::Interfaces::create_attribute ( HF::Interfaces::Alert::Server server,
uint8_t  uid 
)

Create an attribute object that can hold the attribute with the given uid.

If server is not equal to nullptr then initialize it with the current value.

Parameters
[in]serverpointer to the object to read the current value from.
[in]uidattribute's UID to create the attribute object for.
Return values
pointerto an attribute object
<tt>nullptr</tt>if the attribute UID does not exist.

Referenced by HF::Interfaces::SimpleHumidity::Server::attribute(), HF::Interfaces::OnOff::Server::attribute(), HF::Interfaces::SimpleTemperature::Server::attribute(), HF::Interfaces::Alert::Server::attribute(), HF::Interfaces::LevelControl::Server::attribute(), HF::Interfaces::SimpleThermostat::Server::attribute(), HF::Interfaces::SimpleTemperature::create_attribute(), and HF::Interfaces::SimpleVisualEffects::create_attribute().

+ Here is the caller graph for this function:

◆ create_attribute() [2/2]

HF::Attributes::IAttribute* HF::Interfaces::Alert::create_attribute ( uint8_t  uid)
inline

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Alert::Server *,uint8_t)

See also
HF::Interfaces::create_attribute (HF::Interfaces::Alert::Server *,uint8_t)
Parameters
[in]uidattribute UID to create the attribute object for.
Return values
pointerto an attribute object
<tt>nullptr</tt>if the attribute UID does not exist.

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Alert::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::Scheduling::Weekly::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Time::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::SUOTA::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::RSSI::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::GroupTable::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid.

Create an attribute object that can hold the attribute with the given uid. (HF::Core::Scheduling::Event::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::DeviceManagement::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::DeviceInformation::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::BindManagement::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::BatchProgramManagement::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::AttributeReporting::Server *,uint8_t)

See also
HF::Interfaces::create_attribute (HF::Interfaces::SimpleHumidity::Server *,uint8_t)
Parameters
[in]uidattribute UID to create the attribute object for.
Returns
pointer to an attribute object or nullptr if the attribute UID does not exist.

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Alert::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::Scheduling::Weekly::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::Time::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::SUOTA::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::RSSI::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::GroupTable::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid.

Create an attribute object that can hold the attribute with the given uid. (HF::Core::Scheduling::Event::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::DeviceManagement::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::DeviceInformation::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::BindManagement::Server *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::BatchProgramManagement::IServer *,uint8_t)

Create an attribute object that can hold the attribute with the given uid. (HF::Core::AttributeReporting::Server *,uint8_t)

See also
HF::Interfaces::create_attribute (HF::Interfaces::SimpleTemperature::Server *,uint8_t)
Parameters
[in]uidattribute UID to create the attribute object for.
Return values
pointerto an attribute object
<tt>nullptr</tt>if the attribute UID does not exist.

Definition at line 108 of file simple_humidity.h.

109  {
110  return Interfaces::create_attribute(static_cast<SimpleHumidity::Server *>(nullptr),
111  uid);
112  }
HF::Attributes::IAttribute * create_attribute(uint8_t uid)
Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::SimpleHum...

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  stream,
const HF::Interfaces::Alert::CMD  command 
)

Convert the given command into a string and write it to the given stream.

Parameters
[in]streamout stream to write the string to.
[in]commandrole value to convert to a string.
Returns
stream

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  stream,
const HF::Interfaces::Alert::Attributes  attribute 
)

Convert the given attribute into a string and write it to the given stream.

Parameters
[in]streamout stream to write the string to.
[in]attributeattribute value to convert to a string.
Returns
stream