SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
sutil::SPrintable< ObjectType > Class Template Reference

#include <CRegisteredPrintables.hpp>

Inheritance diagram for sutil::SPrintable< ObjectType >:
Inheritance graph
[legend]
Collaboration diagram for sutil::SPrintable< ObjectType >:
Collaboration graph
[legend]

Public Member Functions

 SPrintable (const ObjectType &arg_data)
 
virtual void printDataToStream (std::ostream &ostr) const
 
virtual SPrintableBasecreateObject () const
 

Public Attributes

const ObjectType & data_
 

Private Member Functions

 SPrintable (const SPrintable &)
 
SPrintableoperator= (const SPrintable &)
 

Detailed Description

template<typename ObjectType>
class sutil::SPrintable< ObjectType >

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.


The documentation for this class was generated from the following file: