Untitled


SUBMITTED BY: Guest

DATE: Jan. 1, 2014, 1:34 a.m.

FORMAT: Text only

SIZE: 1.3 kB

HITS: 1103

  1. #pragma once
  2. #include <string>
  3. #include <list>
  4. typedef std::list<std::string> LISTSTRING;
  5. typedef std::list<std::string>::iterator LISTSTRING_ITER;
  6. struct SEMOTICON
  7. {
  8. int nID; // À̸ðƼÄÜ ¹øÈ£
  9. std::string strMotion; // ¸ð¼Ç : Àλç
  10. LISTSTRING listTerm; // ¿ë¾î : ¾È³çÇϼ¼¿ä.
  11. SEMOTICON () : nID(0) {}
  12. SEMOTICON ( const SEMOTICON & sEmoticon )
  13. {
  14. nID = sEmoticon.nID;
  15. strMotion = sEmoticon.strMotion;
  16. listTerm = sEmoticon.listTerm;
  17. }
  18. SEMOTICON & operator= ( const SEMOTICON & sEmoticon )
  19. {
  20. if ( this == &sEmoticon )
  21. return *this;
  22. nID = sEmoticon.nID;
  23. strMotion = sEmoticon.strMotion;
  24. listTerm = sEmoticon.listTerm;
  25. return *this;
  26. }
  27. };
  28. typedef std::list<SEMOTICON> LISTEMOTICON;
  29. typedef LISTEMOTICON::iterator LISTEMOTICON_ITER;
  30. class CEmoticon
  31. {
  32. protected:
  33. LISTEMOTICON m_listEmoticon;
  34. public:
  35. bool LOAD ();
  36. LISTEMOTICON& GetEmoticon () { return m_listEmoticon; }
  37. int GetEmoticonOfMotion(const std::string &);
  38. int GetEmoticonOfTerm(const std::string &);
  39. protected:
  40. CEmoticon(void);
  41. public:
  42. ~CEmoticon(void);
  43. public:
  44. static CEmoticon& GetInstance ();
  45. };

comments powered by Disqus