HGL::Type::DefaultProjectFactory Class Reference
[Utility classes]

Convenience class for implementing HGL::Type::IProjectFactory. More...

#include <defaultprojectfactory.h>

Inheritance diagram for HGL::Type::DefaultProjectFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual AssignmentOperatorcreateAssignmentOperator (const std::string &id, IType *typeL, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an AssignmentOperator.
virtual CurvecreateCurve (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Curve.
virtual DebugProcedurecreateDebugProcedure (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a DebugProcedure.
virtual EllipsecreateEllipse (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an Ellipse.
virtual FillcreateFill (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Fill.
virtual IncludecreateInclude (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Include.
virtual LinecreateLine (IPoint *p1, IPoint *p2, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Line.
virtual LinecreateLine (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Line.
virtual MainSegmentcreateMainSegment (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a MainSegment.
virtual NamedParamcreateNamedParam (const std::string &typeName, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a NamedParam.
virtual ObjectsSegmentcreateObjectsSegment (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an ObjectsSegment.
virtual ParamSectioncreateParamSection (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a ParamSection.
virtual IPointcreatePoint (const std::string &id, const IPoint &p, bool markerPoint, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an IPoint.
virtual PointcreatePoint (bool markerPoint, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Point.
virtual PolycreatePoly (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Poly.
virtual ProcCallcreateProcCall (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a ProcCall.
virtual ProcedurecreateProcedure (const std::string &id, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Procedure.
virtual ProceduresSegmentcreateProceduresSegment (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a ProceduresSegment.
virtual ProcInitStatementcreateProcInitStatement (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a ProcInitStatement.
virtual IParamcreateProcParam (const IParam *, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an IParam.
virtual FloatParamcreateProcParam (float f, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a FloatParam.
virtual ReferenceParamcreateProcParam (const std::string &ref, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a ReferenceParam.
virtual IProjectcreateProject (const std::string &id, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates an IProject.
virtual RenderCallbackcreateRenderCallback (const std::string &ref, IType *stdlib, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a RenderCallback.
virtual RenderProcedurecreateRenderProcedure (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a RenderProcedure.
virtual SignaturecreateSignature (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Signature.
virtual StdLibCallcreateStdLibCall (IType *libL, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a StdLibCall.
virtual StringParamcreateStringParam (const std::string &txt, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a StringParam.
virtual TextcreateText (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Text.
virtual Vector2DcreateVector2D (float x, float y, int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a Vector2D.
virtual VirtualGroupcreateVirtualGroup (int line=-1) const throw (Exception::ProjectFactoryException)
 Creates a VirtualGroup.

Detailed Description

Convenience class for implementing HGL::Type::IProjectFactory.

This class provides default implemenentations for the methods of HGL::Type::IProjectFactory. They all simply throw HGL::Exception::UnsupportedTypeException. Override the methods you need.

See also:
HGL::Type::IProjectFactory
HGL::Exception::UnsupportedTypeException
Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

AssignmentOperator * DefaultProjectFactory::createAssignmentOperator ( const std::string &  id,
IType type,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates an AssignmentOperator.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Curve * DefaultProjectFactory::createCurve ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Curve.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

DebugProcedure * DefaultProjectFactory::createDebugProcedure ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a DebugProcedure.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Ellipse * DefaultProjectFactory::createEllipse ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates an Ellipse.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Fill * DefaultProjectFactory::createFill ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Fill.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Include * DefaultProjectFactory::createInclude ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Include.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Line * DefaultProjectFactory::createLine ( IPoint p1,
IPoint p2,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a Line.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Line * DefaultProjectFactory::createLine ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Line.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

MainSegment * DefaultProjectFactory::createMainSegment ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a MainSegment.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

NamedParam * DefaultProjectFactory::createNamedParam ( const std::string &  typeName,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a NamedParam.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ObjectsSegment * DefaultProjectFactory::createObjectsSegment ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates an ObjectsSegment.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ParamSection * DefaultProjectFactory::createParamSection ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a ParamSection.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

IPoint * DefaultProjectFactory::createPoint ( const std::string &  id,
const IPoint p,
bool  markerPoint,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates an IPoint.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Point * DefaultProjectFactory::createPoint ( bool  markerPoint,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a Point.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Poly * DefaultProjectFactory::createPoly ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Poly.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ProcCall * DefaultProjectFactory::createProcCall ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a ProcCall.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Procedure * DefaultProjectFactory::createProcedure ( const std::string &  id,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a Procedure.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ProceduresSegment * DefaultProjectFactory::createProceduresSegment ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a ProceduresSegment.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ProcInitStatement * DefaultProjectFactory::createProcInitStatement ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a ProcInitStatement.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

IParam * DefaultProjectFactory::createProcParam ( const IParam ,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates an IParam.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

FloatParam * DefaultProjectFactory::createProcParam ( float  f,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a FloatParam.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ReferenceParam * DefaultProjectFactory::createProcParam ( const std::string &  ref,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a ReferenceParam.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

IProject * DefaultProjectFactory::createProject ( const std::string &  id,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates an IProject.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

RenderCallback * DefaultProjectFactory::createRenderCallback ( const std::string &  ref,
IType stdlib,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a RenderCallback.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

RenderProcedure * DefaultProjectFactory::createRenderProcedure ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a RenderProcedure.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Signature * DefaultProjectFactory::createSignature ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Signature.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

StdLibCall * DefaultProjectFactory::createStdLibCall ( IType lib,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a StdLibCall.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

StringParam * DefaultProjectFactory::createStringParam ( const std::string &  txt,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a StringParam.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Text * DefaultProjectFactory::createText ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a Text.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

Vector2D * DefaultProjectFactory::createVector2D ( float  x,
float  y,
int  line = -1 
) const throw (Exception::ProjectFactoryException) [virtual]

Creates a Vector2D.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

VirtualGroup * DefaultProjectFactory::createVirtualGroup ( int  line = -1  )  const throw (Exception::ProjectFactoryException) [virtual]

Creates a VirtualGroup.

Parameters:
line an optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.


Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1