ComSDK
 Указатель Классы Пространства имен Функции Переменные Определения типов Перечисления Элементы перечислений Друзья Группы Страницы
message.h
1 //========================================================================
2 #ifndef comfrm_cls_MessageH
3 #define comfrm_cls_MessageH
4 //========================================================================
5 #include "anymap.h"
6 #include "node.h"
7 
8 #include <string>
9 //========================================================================
10 namespace com {
11  namespace interproc {
17  class MAC_DLLEXPORT Message
18  {
19  public:
20  Message();
21 
25  Message(const NodeAddress& p_addr, const Anymap& p_anymap);
26  ~Message();
27 
31  void setAnyMap(const Anymap& p_anymap);
32 
36  void setNode(const NodeAddress& p_addr);
37 
42  bool setNode(const std::string& p_strAddr);
43 
44  const NodeAddress& getNode() const;
45  const Anymap& getAnyMap() const;
46 
47  protected:
48  std::string m_uniqueMessageId;
49  Anymap m_anymap;
50  NodeAddress m_address;
51  };
52  }
53 }
54 //========================================================================
55 #endif
56 //========================================================================
Адрес узла
Definition: node.h:34
Мультитиповой словарь
Definition: anymap.h:79
Сетевое сообщение
Definition: message.h:17