#ifndef _MyModule_h_ #define _MyModule_h_ #include namespace evt { class Event; } // you should assign your module to a namespace namespace MyModule { /** \class MyModule \brief Trivial example module. \author Joe the Plumber \date 4 Nov 2008 \version $Id: MyModule.h 15233 2009-11-23 00:41:03Z darko $ */ class MyModule : public fwk::VModule { public: // If you define a constructor, you MUST provide an implementation // for it, otherwise the REGISTER_MODULE macro will not register // your module. (Here, implementation is in MyModule.cc) MyModule(); virtual ~MyModule(); fwk::VModule::ResultFlag Init(); fwk::VModule::ResultFlag Run(evt::Event& event); fwk::VModule::ResultFlag Finish(); private: // The REGISTER_MODULE macro makes the framework aware of your module. // You need to put this macro at the very end of your module class definition. // Give your module a name (first argument) and specify its // class name (second argument). In the ModuleSequenceExample.xml file, // you can see this module being refered to by the name we give it here. REGISTER_MODULE("MyModule", MyModule); }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode:c++ // compile-command: "make -k" // End: