00001 #ifndef __EMCMODULE_H__
00002 #define __EMCMODULE_H__
00003
00004
00005
00006
00007 #include "phool.h"
00008 #include "PHString.h"
00009
00010 class PHNode;
00011 class PHCompositeNode;
00012
00013 class EMCModule
00014 {
00015
00016 public:
00017 EMCModule ();
00018 virtual ~EMCModule (){}
00019
00020 public:
00021 const PHString & getName () const
00022 {
00023 return name;
00024 }
00025
00026 virtual PHBoolean event (PHCompositeNode *) = 0;
00027
00028 virtual PHBoolean init ()
00029 {
00030 return True;
00031 }
00032
00033 protected:
00034 PHNode * findFirst (PHCompositeNode *, PHString &, PHString &);
00035
00036 protected:
00037 PHString name;
00038 };
00039
00040 #endif