Initializable abstract class
More...
#include <Stateful.h>
Initializable abstract class
This is a utility classe for initialization control. It is also possible to use this class for pre-conditioning function implementations when developing applications (DbC).
- See also
- http://sunday-lab.blogspot.com.br/2006/04/pre-condition-and-post-condition-in-c.html
- Author
- Lucas Pandolfo Perin
Simple state enumerator, ENABLED or DISABLED!
Enumerator |
---|
DISABLED |
|
ENABLED |
|
Default Constructor, initializes as DEAD.
virtual objck::Stateful::~Stateful |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
void objck::Stateful::disable |
( |
| ) |
|
|
inlineprotected |
Sets _currentState to DISABLED
void objck::Stateful::enable |
( |
| ) |
|
|
inlineprotected |
Sets _currentSate to ALIVE
Returns the current state of the class.
- Returns
- _currentState
bool objck::Stateful::isDisabled |
( |
| ) |
|
|
inline |
Returns true is instance is DEAD.
- Returns
- true if is DEAD
bool objck::Stateful::isEnabled |
( |
| ) |
|
|
inline |
Returns true is instance is ALIVE.
- Returns
- true if is ALIVE
The documentation for this class was generated from the following file: