hgl 0.5.25
A compiler/interpreter suite for developing images
Public Member Functions | List of all members
HGL::Type::DefaultProjectFactory Class Reference

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

#include "defaultprojectfactory.h"

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

Public Member Functions

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

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.nosp@m.@hgl.nosp@m..rang.nosp@m.un.d.nosp@m.e

Member Function Documentation

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

Creates an AssignmentOperator.

Parameters
linean 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
linean 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
linean 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
linean optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.

ExpressionParam * DefaultProjectFactory::createExpressionParam ( const std::string &  ,
const IProjectFactory ,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
virtual

Creates an ExpressionParam.

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

Implements HGL::Type::IProjectFactory.

ExpressionParam * DefaultProjectFactory::createExpressionParam ( const ExpressionParam ,
const IProjectFactory ,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
virtual

Creates an ExpressionParam.

Parameters
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean 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
linean optional line number or -1 (default) for none

Implements HGL::Type::IProjectFactory.