LRAUV  revA
SampleModule.h
Go to the documentation of this file.
1 
14 #ifndef SAMPLEMODULE_H_
19 #define SAMPLEMODULE_H_
20 
21 #include "module/Module.h"
22 
28 class SampleModule : public Module
29 {
30 public:
32  SampleModule();
33 
35  virtual ~SampleModule();
36 
37  void loadComponents( Logger& logger );
38 
39 private:
40 
41 };
42 
44 
47 extern "C" Module* create_module()
48 {
49  return new SampleModule();
50 }
51 
54 extern "C" void destroy_module( Module* module )
55 {
56  delete module;
57 }
58 
59 #endif /*SAMPLEMODULE_H_*/
Client-side interface for injecting log data into the log queue.
Definition: Logger.h:30
virtual ~SampleModule()
Destructor.
Definition: SampleModule.cpp:27
Module is the abstract base class for a collection of Component objects that can be contained in a lo...
Definition: Module.h:45
Module * create_module()
Class factories.
Definition: SampleModule.h:47
Contains the Module class definition.
void destroy_module(Module *module)
destroy_module must be implemented, following the class implementation:
Definition: SampleModule.h:54
SampleModule()
Constructor.
Definition: SampleModule.cpp:14
Collection of Components that can be dynamically loaded and unloaded.
Definition: SampleModule.h:28
void loadComponents(Logger &logger)
loads the collection of components belonging to this module
Definition: SampleModule.cpp:19