SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CRegisteredPrintables.hpp>
Public Member Functions | |
SPrintable (const ObjectType &arg_data) | |
virtual void | printDataToStream (std::ostream &ostr) const |
virtual SPrintableBase * | createObject () const |
Public Attributes | |
const ObjectType & | data_ |
Private Member Functions | |
SPrintable (const SPrintable &) | |
SPrintable & | operator= (const SPrintable &) |
This helps the map to work properly (through typical object orientation). It also saves you from writing redundant code for every type.
This class will be automatically generated for a type when you implement the: printToStream<Type>(std::outstream&, Type&) function. Do so for every printable type you want to support.