Service helper class.
| ServiceType | The interited class in order to identifiy the service category. |
| Priority | The interited class in order to identifiy the service category. Default = PriorityNormal. |
| StackSize | Size of the service controller thread service stack. Default = DefaultStackSize. |
Create a new catgory of service and instantiate its dedicated ServiceController.
Usage :
Inheritance diagram for Service< ServiceType, Priority, StackSize >:Public Member Methods | |
| Service () | |
| Constuctor. More... | |
| virtual | ~Service () |
| Destructor. More... | |
Public Member Methods inherited from BaseService | |
| BaseService (BaseServiceController &serviceController) | |
| Constuctor. More... | |
| void | SetPeriod (TimeSpan period) |
| Set the period of the service. More... | |
| TimeSpan | GetPeriod () const |
| Gets the service period. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from BaseService | |
| virtual void | InitialExecute () |
| Initial execution of the service. More... | |
| virtual void | CyclicExecute ()=0 |
| Cyclic execution of the service. More... | |
| virtual void | FinalExecute () |
| Final execution of the service. More... | |
| void | UnregisterServiceController () |
| Method used by inherited class to unregister the service controller. More... | |
| void | RegisterServiceController () |
| Method used by inherited class to register the service controller once completely created. More... | |
|
inline |
Constuctor.
|
inlinevirtual |
Destructor.