1.1 --- a/sourcehook/test/testevents.h Fri Dec 23 11:58:11 2005 +0000
1.2 +++ b/sourcehook/test/testevents.h Fri Dec 23 23:00:55 2005 +0000
1.3 @@ -19,26 +19,24 @@
1.4
1.5 extern bool g_Verbose;
1.6
1.7 +struct State
1.8 +{
1.9 + virtual ~State()
1.10 + {
1.11 +
1.12 + }
1.13 +
1.14 + virtual bool IsEqual(State *other)
1.15 + {
1.16 + return (typeid(other) == typeid(this)) ? true : false;
1.17 + }
1.18 +
1.19 + virtual void Dump() = 0;
1.20 +};
1.21 +
1.22 +typedef std::list<State*> StateList;
1.23 namespace
1.24 {
1.25 -
1.26 - struct State
1.27 - {
1.28 - virtual ~State()
1.29 - {
1.30 -
1.31 - }
1.32 -
1.33 - virtual bool IsEqual(State *other)
1.34 - {
1.35 - return (typeid(other) == typeid(this)) ? true : false;
1.36 - }
1.37 -
1.38 - virtual void Dump() = 0;
1.39 - };
1.40 -
1.41 - typedef std::list<State*> StateList;
1.42 -
1.43 void DumpStates(StateList *sl)
1.44 {
1.45 for (StateList::iterator iter = sl->begin(); iter != sl->end(); ++iter)