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_