hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MessagesCollection.hpp
Go to the documentation of this file.
1 
14 #ifndef MESSAGES_COLLECTION_HPP
15 #define MESSAGES_COLLECTION_HPP
16 
17 #include <vector>
18 #include <map>
19 #include <string>
20 
21 namespace HCE
22 {
23 //-----------------------------------------------------------------------------
25 {
26  typedef std::pair<unsigned int, std::string> MsgItem;
27  typedef std::map<unsigned int, std::string> MSG_MAP;
28 public:
29  MessagesCollection(void);
30  explicit MessagesCollection(const std::vector<MsgItem>& msgItems);
33  ~MessagesCollection(void);
34 
37 
38  void set(const std::vector<MsgItem>& msgItems);
39  std::string getMessage(unsigned int type);
40 
41  const MSG_MAP getMessages(void) const {return Messages;}
42 private:
43  MSG_MAP Messages;
44 };
45 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
47 } // end namespace HCE
48 
49 #endif // MESSAGES_COLLECTION_HPP