Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
trsDataVI Class Reference
virtual bare class for the transient data.
More...
#include <trsDataVI.h>
List of all members.
Public Methods |
| trsDataVI () |
| default constructor.
|
virtual | ~trsDataVI () |
| default destructor.
|
virtual void | update () |
| virtual method to clear and make/fill the transient data.
|
virtual void | ini () = 0 |
| pure virtual method to initialize the data (pointers if needed).
|
virtual void | clear () = 0 |
| pure virtual method to clear the data.
|
virtual void | make () = 0 |
| pure virtual method to make/fill the data. More...
|
virtual void | writeOut () const |
| virtual function to writeOut the contents of the derived class. More...
|
virtual void | command (std::string com) |
| virtual method to execute method of this class for composites. More...
|
Detailed Description
virtual bare class for the transient data.
The transient data of the program should inherit from this base class.
The transient data assumes:
- it will be created one (execute the
ini()
method) - the pointer will be preserved alive and that the data will be cleared up and filled again.
- trsDataVI has a main virtual method update() that executes the pure virtual methods clear() and make(). The clear() and make() should be implemented by the derived class. In principle, clear() clear the data and make() makes or fill the data.
Note that this method is usually null and replaced by the action of an algorithmVI. - There is an pure virtual method ini() to initialize the data. Most of the data is created only one, the pointer kept in a serverVI, and the contents of the data replaced every update().
- For convenience we add a virtual method writeOut() to print out the information of the data. To be compatible with the messageVI writeOut() method.
- The command() method executed the method of this class via their names. It is useful to create composite classes. It is used for example in the template class serverVI.
Definition at line 38 of file trsDataVI.h.
Constructor & Destructor Documentation
trsDataVI::trsDataVI ( ) [inline] |
|
trsDataVI::~trsDataVI ( ) [inline, virtual] |
|
Member Function Documentation
void trsDataVI::clear ( ) [inline, pure virtual] |
|
pure virtual method to clear the data.
void trsDataVI::command (
|
std::string com ) [inline, virtual] |
|
virtual method to execute method of this class for composites.
It can be use for example in serverVI <trsData> classes
Definition at line 11 of file trsDataVI.cpp.
void trsDataVI::ini ( ) [inline, pure virtual] |
|
pure virtual method to initialize the data (pointers if needed).
void trsDataVI::make ( ) [inline, pure virtual] |
|
pure virtual method to make/fill the data.
usually this method is replaced by the action of an algorithmVI
void trsDataVI::update ( ) [inline, virtual] |
|
virtual method to clear and make/fill the transient data.
Definition at line 4 of file trsDataVI.cpp.
void trsDataVI::writeOut ( ) const [inline, virtual] |
|
virtual function to writeOut the contents of the derived class.
note that has the same name that the method in messageVI
Definition at line 63 of file trsDataVI.h.
The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:42 2000 for centella framework by
1.1.3 written by Dimitri van Heesch,
© 1997-2000