00001 //concrete state class of state-pattern 00002 #ifndef StateEnd_I2abdb221m12355049952mm7c7a_H 00003 #define StateEnd_I2abdb221m12355049952mm7c7a_H 00004 00005 #include "State.h" 00006 #include "Singleton.h" 00008 00012 class StateEnd : public State, public Singleton<StateEnd>{ 00013 friend class Singleton<StateEnd>; 00014 00015 public: 00016 ~StateEnd(){ } 00017 00018 protected: 00019 virtual void doPrint(); 00020 virtual void doGetKey(); 00021 00022 private: 00023 StateEnd(){ } 00024 }; 00025 #endif // StateEnd_I2abdb221m12355049952mm7c7a_H 00026
1.6.1