Base class for all simulated elements.
More...
#include <base.h>
Base class for all simulated elements.
Sub-classes of ElementVoid must be registered with Machine::registerElement before they will be found by Machine::Machine().
Definition at line 166 of file base.h.
ElementVoid::ElementVoid |
( |
const Config & |
conf | ) |
|
Construct this element using the provided Config.
Base class ctor makes use of Config parameters "name" and "length". "name" is required. "length" is option, and is 0.0 if omitted.
Sub-classes are allowed to require certain parameters to be provided.
- Exceptions
-
KeyError | If a required parameter is missing |
boost::bad_get | If a parameter exists, but has the wrong value type |
Definition at line 54 of file base.cpp.
void ElementVoid::set_observer |
( |
Observer * |
o | ) |
|
|
inline |
Add Observer which will inspect the output State of this Element. Observer instance musy outlive the Element.
- Parameters
-
o | A new Observer or NULL, will replace any existing pointer. |
Definition at line 204 of file base.h.
void ElementVoid::show |
( |
std::ostream & |
strm, |
|
|
int |
level |
|
) |
| const |
|
virtual |
virtual const char* ElementVoid::type_name |
( |
| ) |
const |
|
pure virtual |
The documentation for this struct was generated from the following files: