CopyObjectFactory Class Reference

#include <SceneBuilderFactories.h>

Inherits ObjectFactory.

Inheritance diagram for CopyObjectFactory:

Inheritance graph
[legend]
Collaboration diagram for CopyObjectFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CopyObjectFactory (std::map< std::string, Object * > &objects)
virtual Objectcreate (const std::string &type, std::stringstream &line)

Protected Attributes

std::map< std::string, Object * > & mObjects
 Mapping name -> Object.

Detailed Description

Copy Object parser

Author:
Alex Busenius

Definition at line 591 of file SceneBuilderFactories.h.


Constructor & Destructor Documentation

CopyObjectFactory::CopyObjectFactory ( std::map< std::string, Object * > &  objects  )  [inline]

Constructor

Definition at line 596 of file SceneBuilderFactories.h.


Member Function Documentation

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

Create a copy of another object

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

Implements ObjectFactory.

Definition at line 636 of file SceneBuilderFactories.cpp.

References Object::createCopy(), mObjects, and Object::setCastShadows().


Member Data Documentation

std::map<std::string, Object *>& CopyObjectFactory::mObjects [protected]

Mapping name -> Object.

Definition at line 612 of file SceneBuilderFactories.h.

Referenced by create().


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