21 #ifndef INCLUDE_OLA_MESSAGING_MESSAGE_H_
22 #define INCLUDE_OLA_MESSAGING_MESSAGE_H_
24 #include <ola/messaging/Descriptor.h>
25 #include <ola/messaging/MessageVisitor.h>
42 const std::vector<const class MessageFieldInterface*> &fields)
49 unsigned int FieldCount()
const {
return m_fields.size(); }
52 std::vector<const class MessageFieldInterface*> m_fields;
77 : m_descriptor(descriptor),
84 bool Value()
const {
return m_value; }
103 : m_descriptor(descriptor),
109 : m_descriptor(descriptor),
119 visitor->Visit(
this);
135 : m_descriptor(descriptor),
145 visitor->Visit(
this);
161 : m_descriptor(descriptor),
171 visitor->Visit(
this);
186 const std::string &value)
187 : m_descriptor(descriptor),
192 const std::string& Value()
const {
return m_value; }
195 visitor->Visit(
this);
200 const std::string m_value;
207 template <
typename type>
212 : m_descriptor(descriptor),
219 type Value()
const {
return m_value; }
222 visitor->Visit(
this);
246 const std::vector<const class MessageFieldInterface*> &fields)
247 : m_descriptor(descriptor),
253 unsigned int FieldCount()
const {
return m_fields.size(); }
255 if (index < m_fields.size())
256 return m_fields[index];
264 std::vector<const class MessageFieldInterface*> m_fields;
269 #endif // INCLUDE_OLA_MESSAGING_MESSAGE_H_
Definition: MessageVisitor.h:43
Definition: Descriptor.h:84
A RDM unique identifier (UID).
Definition: Message.h:131
Definition: Descriptor.h:122
Definition: Descriptor.h:320
Represents a IPv4 Address.
Definition: IPV4Address.h:55
Represents a MAC Address.
Definition: MACAddress.h:50
Definition: Descriptor.h:141
Definition: Descriptor.h:103
Definition: Message.h:157
Represents an IPv4 Address.
Definition: Message.h:183
Definition: Descriptor.h:160
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Represents a MAC Address.
Definition: Descriptor.h:190
Definition: Message.h:208
Definition: Message.h:242