rename DMP::Component -> DMP::Appliance
This commit is contained in:
parent
30f61fa019
commit
5ea90a2beb
@ -1,12 +1,12 @@
|
|||||||
target_sources(${PROJECT_NAME}
|
target_sources(${PROJECT_NAME}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
dmp/component.h
|
dmp/appliance.h
|
||||||
dmp/controller.h
|
dmp/controller.h
|
||||||
dmp/device.h
|
dmp/device.h
|
||||||
dmp/event.h
|
dmp/event.h
|
||||||
dmp/property.h
|
dmp/property.h
|
||||||
PRIVATE
|
PRIVATE
|
||||||
dmp/component.cpp
|
dmp/appliance.cpp
|
||||||
dmp/controller.cpp
|
dmp/controller.cpp
|
||||||
dmp/device.cpp
|
dmp/device.cpp
|
||||||
dmp/dmp.cpp
|
dmp/dmp.cpp
|
||||||
|
@ -22,21 +22,34 @@
|
|||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "component.h"
|
#include "appliance.h"
|
||||||
#include "dmp.h"
|
#include "dmp.h"
|
||||||
|
|
||||||
namespace ACN::DMP {
|
namespace ACN::DMP {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Component::Component
|
* @brief Appliance::Appliance
|
||||||
|
* @param cid
|
||||||
*/
|
*/
|
||||||
Component::Component(UUID::uuid cid)
|
Appliance::Appliance(UUID::uuid cid)
|
||||||
: SDT::Member(cid)
|
: SDT::Member(cid)
|
||||||
|
, DMP::Device()
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP DMP Component";
|
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));
|
std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Appliance::DmpReceiver
|
||||||
|
* @param rlp
|
||||||
|
*/
|
||||||
|
void Appliance::DmpReceiver(PDU::Message<RLP::Pdu> rlp)
|
||||||
|
{
|
||||||
|
(void)rlp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace ACN::DMP
|
} // namespace ACN::DMP
|
@ -24,19 +24,24 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sdt/member.h"
|
#include "sdt/member.h"
|
||||||
|
#include "device.h"
|
||||||
|
|
||||||
namespace ACN::DMP {
|
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 SDT::Member
|
||||||
|
, public DMP::Device
|
||||||
{
|
{
|
||||||
public:
|
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
|
} // namespace ACN::DMP
|
Loading…
Reference in New Issue
Block a user