1
0
Fork 0

rename DMP::Component -> DMP::Appliance

This commit is contained in:
Kevin Matz 2021-08-25 10:31:19 -04:00
parent 30f61fa019
commit 5ea90a2beb
3 changed files with 28 additions and 10 deletions

View File

@ -1,12 +1,12 @@
target_sources(${PROJECT_NAME}
PUBLIC
dmp/component.h
dmp/appliance.h
dmp/controller.h
dmp/device.h
dmp/event.h
dmp/property.h
PRIVATE
dmp/component.cpp
dmp/appliance.cpp
dmp/controller.cpp
dmp/device.cpp
dmp/dmp.cpp

View File

@ -22,21 +22,34 @@
SOFTWARE.
*/
#include "component.h"
#include "appliance.h"
#include "dmp.h"
namespace ACN::DMP {
/**
* @brief Component::Component
* @brief Appliance::Appliance
* @param cid
*/
Component::Component(UUID::uuid cid)
Appliance::Appliance(UUID::uuid cid)
: SDT::Member(cid)
, DMP::Device()
{
fctn_ = "OpenLCP DMP Component";
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Component::SdtReceiver, this,
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Appliance::SdtReceiver, this,
std::placeholders::_1));
}
/**
* @brief Appliance::DmpReceiver
* @param rlp
*/
void Appliance::DmpReceiver(PDU::Message<RLP::Pdu> rlp)
{
(void)rlp;
}
} // namespace ACN::DMP

View File

@ -24,19 +24,24 @@
#pragma once
#include "sdt/member.h"
#include "device.h"
namespace ACN::DMP {
/**
* @brief The Component class
* @brief The Appliance class
* In DMP systems an appliance corresponds to a component that exposes one or
* more devices (since the rules require that all devices are descendants of a
* single root device).
*/
class Component
class Appliance
: public SDT::Member
, public DMP::Device
{
public:
Component(UUID::uuid = UUID::uuid());
Appliance(UUID::uuid = UUID::uuid());
virtual void DmpReceiver(std::shared_ptr<RLP::Pdu>);
virtual void DmpReceiver(PDU::Message<RLP::Pdu>);
};
} // namespace ACN::DMP