ObjectFactory Class Reference

#include <SceneBuilderFactories.h>

Inherits SceneBuilderFactory.

Inherited by CopyObjectFactory, and ShadedObjectFactory.

Inheritance diagram for ObjectFactory:

Inheritance graph
[legend]
Collaboration diagram for ObjectFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ObjectFactory ()
virtual Objectcreate (const std::string &type, std::stringstream &line)=0

Detailed Description

Base class for object parsers

Author:
Alex Busenius

Definition at line 499 of file SceneBuilderFactories.h.


Constructor & Destructor Documentation

ObjectFactory::ObjectFactory (  )  [inline]

Constructor

Definition at line 504 of file SceneBuilderFactories.h.


Member Function Documentation

virtual Object* ObjectFactory::create ( const std::string &  type,
std::stringstream &  line 
) [pure virtual]

Create a new object based on type and data in the stream

Parameters:
type Statement type
line Line with data
Returns:
New object

Implemented in OBJObjectFactory, SphereObjectFactory, and CopyObjectFactory.


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:20 2008 for Grayfall by  doxygen 1.5.1