27#ifndef INCLUDE_OLA_RDM_DUMMYRESPONDER_H_
28#define INCLUDE_OLA_RDM_DUMMYRESPONDER_H_
34#include <ola/rdm/ResponderPersonality.h>
44class DummyResponder:
public RDMControllerInterface {
46 explicit DummyResponder(
const UID &uid);
51 uint16_t StartAddress()
const {
return m_start_address; }
52 uint16_t Footprint()
const {
53 return m_personality_manager.ActivePersonalityFootprint();
60 class RDMOps :
public ResponderOps<DummyResponder> {
62 static RDMOps *Instance() {
64 instance =
new RDMOps();
69 RDMOps() : ResponderOps<DummyResponder>(PARAM_HANDLERS) {}
71 static RDMOps *instance;
77 class Personalities :
public PersonalityCollection {
79 static const Personalities *Instance();
83 PersonalityCollection(personalities) {
86 static Personalities *instance;
90 uint16_t m_start_address;
92 uint32_t m_lamp_strikes;
93 PersonalityManager m_personality_manager;
95 std::auto_ptr<NetworkManagerInterface> m_network_manager;
134 static const ResponderOps<DummyResponder>::ParamHandler PARAM_HANDLERS[];
135 static const uint8_t DEFAULT_PERSONALITY = 2;
The interface for the NetworkManager.
Definitions and Interfaces to implement an RDMController that sends a single message at a time.
Various constants used in RDM.
A framework for building RDM responders.
Holds the information about a sensor.
A RDM unique identifier (UID).
void SendRDMRequest(RDMRequest *request, RDMCallback *callback)
Send a RDM command.
Definition DummyResponder.cpp:197
std::vector< Personality > PersonalityList
Definition ResponderPersonality.h:68
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition RDMCommand.h:234
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition RDMCommand.h:457
Represents a RDM UID.
Definition UID.h:57
PLASA E1.20 Remote Device Management.
Definition AckTimerResponder.cpp:38
ola::BaseCallback1< void, RDMReply * > RDMCallback
The callback run when a RDM request completes.
Definition RDMControllerInterface.h:52
The namespace containing all OLA symbols.
Definition Credentials.cpp:44