#pragma once #include #include typedef std::list LISTSTRING; typedef std::list::iterator LISTSTRING_ITER; struct SEMOTICON { int nID; // À̸ðƼÄÜ ¹øÈ£ std::string strMotion; // ¸ð¼Ç : Àλç LISTSTRING listTerm; // ¿ë¾î : ¾È³çÇϼ¼¿ä. SEMOTICON () : nID(0) {} SEMOTICON ( const SEMOTICON & sEmoticon ) { nID = sEmoticon.nID; strMotion = sEmoticon.strMotion; listTerm = sEmoticon.listTerm; } SEMOTICON & operator= ( const SEMOTICON & sEmoticon ) { if ( this == &sEmoticon ) return *this; nID = sEmoticon.nID; strMotion = sEmoticon.strMotion; listTerm = sEmoticon.listTerm; return *this; } }; typedef std::list LISTEMOTICON; typedef LISTEMOTICON::iterator LISTEMOTICON_ITER; class CEmoticon { protected: LISTEMOTICON m_listEmoticon; public: bool LOAD (); LISTEMOTICON& GetEmoticon () { return m_listEmoticon; } int GetEmoticonOfMotion(const std::string &); int GetEmoticonOfTerm(const std::string &); protected: CEmoticon(void); public: ~CEmoticon(void); public: static CEmoticon& GetInstance (); };