oos::object_producer< T > Class Template Reference

Produces a new object of type T. More...

#include <object_store.hpp>

Inherits oos::object_base_producer.

Public Member Functions

virtual objectcreate () const
 
virtual const char * classname () const
 

Detailed Description

template<class T>
class oos::object_producer< T >

Produces a new object of type T.

These producers a placed in the object type tree and whenever a new object of a certain type is requested, the appropiate producer is used to create the object. It supports also a method to determine the name of the class which is produced.

Member Function Documentation

template<class T >
virtual const char* oos::object_producer< T >::classname ( ) const
inlinevirtual

Returns the name of the class which is created

Returns
the name of the produced class

Implements oos::object_base_producer.

template<class T >
virtual object* oos::object_producer< T >::create ( ) const
inlinevirtual

Creates and returns a new object of type T

Returns
new object of type T

Implements oos::object_base_producer.


The documentation for this class was generated from the following file:
  • object/object_store.hpp