1 #ifndef __lib_service_event_h
2 #define __lib_service_event_h
5 #include <lib/base/object.h>
9 class eServiceEvent: public iObject
11 DECLARE_REF(eServiceEvent);
15 std::string m_event_name, m_description;
18 RESULT parseFrom(Event *evt);
21 TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);
23 class eDebugClass: public iObject
25 DECLARE_REF(eDebugClass);
28 static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
29 eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
30 ~eDebugClass() { printf("remove debug class %d\n", x); }
33 // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);