HCE project C++ developers source code library  1.1.1
HCE project developer library
 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);
31  ~MessagesCollection(void);
32 
33  void set(const std::vector<MsgItem>& msgItems);
34  std::string getMessage(unsigned int type);
35 private:
36  MSG_MAP Messages;
37 };
38 //-----------------------------------------------------------------------------
39 //-----------------------------------------------------------------------------
40 } // end namespace HCE
41 
42 #endif // MESSAGES_COLLECTION_HPP