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>
26 #include <ola/network/IPV4Address.h>
43 explicit Message(
const vector<const class MessageFieldInterface*> &fields)
50 unsigned int FieldCount()
const {
return m_fields.size(); }
53 vector<const class MessageFieldInterface*> m_fields;
78 : m_descriptor(descriptor),
85 bool Value()
const {
return m_value; }
104 : m_descriptor(descriptor),
110 : m_descriptor(descriptor),
120 visitor->Visit(
this);
136 : m_descriptor(descriptor),
146 visitor->Visit(
this);
162 : m_descriptor(descriptor),
167 const string& Value()
const {
return m_value; }
170 visitor->Visit(
this);
175 const string m_value;
182 template <
typename type>
187 : m_descriptor(descriptor),
194 type Value()
const {
return m_value; }
197 visitor->Visit(
this);
220 const vector<const class MessageFieldInterface*> &fields)
221 : m_descriptor(descriptor),
228 unsigned int FieldCount()
const {
return m_fields.size(); }
230 if (index < m_fields.size())
231 return m_fields[index];
239 vector<const class MessageFieldInterface*> m_fields;
244 #endif // INCLUDE_OLA_MESSAGING_MESSAGE_H_