hgl 0.5.25
A compiler/interpreter suite for developing images
Public Member Functions | List of all members
HGL::Type::IProjectFactory Interface Referenceabstract

Interface to a factory creating types. More...

#include "iprojectfactory.h"

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

Public Member Functions

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

Detailed Description

Interface to a factory creating types.

See Also
HGL::Common::IParser
HGL::Common::createProject
HGL::Type::DefaultProjectFactory
Author
Heiko Schäfer heiko.nosp@m.@hgl.nosp@m..rang.nosp@m.un.d.nosp@m.e

Member Function Documentation

virtual AssignmentOperator* HGL::Type::IProjectFactory::createAssignmentOperator ( const std::string &  id,
IType type = 0L,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an AssignmentOperator.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Curve* HGL::Type::IProjectFactory::createCurve ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Curve.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual DebugProcedure* HGL::Type::IProjectFactory::createDebugProcedure ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a DebugProcedure.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Ellipse* HGL::Type::IProjectFactory::createEllipse ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an Ellipse.

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

Implemented in HGL::Type::DefaultProjectFactory.

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

Creates an ExpressionParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

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

Creates an ExpressionParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Fill* HGL::Type::IProjectFactory::createFill ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Fill.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Include* HGL::Type::IProjectFactory::createInclude ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Include.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Line* HGL::Type::IProjectFactory::createLine ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Line.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Line* HGL::Type::IProjectFactory::createLine ( IPoint p1,
IPoint p2,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Line.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual MainSegment* HGL::Type::IProjectFactory::createMainSegment ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a MainSegment.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual NamedParam* HGL::Type::IProjectFactory::createNamedParam ( const std::string &  typeName,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a NamedParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ObjectsSegment* HGL::Type::IProjectFactory::createObjectsSegment ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an ObjectsSegment.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ParamSection* HGL::Type::IProjectFactory::createParamSection ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a ParamSection.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Point* HGL::Type::IProjectFactory::createPoint ( bool  markerPoint,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Point.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual IPoint* HGL::Type::IProjectFactory::createPoint ( const std::string &  id,
const IPoint p,
bool  markerPoint,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an IPoint.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Poly* HGL::Type::IProjectFactory::createPoly ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Poly.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ProcCall* HGL::Type::IProjectFactory::createProcCall ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a ProcCall.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Procedure* HGL::Type::IProjectFactory::createProcedure ( const std::string &  id,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Procedure.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ProceduresSegment* HGL::Type::IProjectFactory::createProceduresSegment ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a ProceduresSegment.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ProcInitStatement* HGL::Type::IProjectFactory::createProcInitStatement ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a ProcInitStatement.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual ReferenceParam* HGL::Type::IProjectFactory::createProcParam ( const std::string &  ref,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a ReferenceParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual FloatParam* HGL::Type::IProjectFactory::createProcParam ( float  f,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a FloatParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual IParam* HGL::Type::IProjectFactory::createProcParam ( const IParam ,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an IParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual IProject* HGL::Type::IProjectFactory::createProject ( const std::string &  id,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates an IProject.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual RenderCallback* HGL::Type::IProjectFactory::createRenderCallback ( const std::string &  ref,
IType stdlib,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a RenderCallback.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual RenderProcedure* HGL::Type::IProjectFactory::createRenderProcedure ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a RenderProcedure.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Signature* HGL::Type::IProjectFactory::createSignature ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Signature.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual StdLibCall* HGL::Type::IProjectFactory::createStdLibCall ( IType lib = 0L,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a StdLibCall.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual StringParam* HGL::Type::IProjectFactory::createStringParam ( const std::string &  txt,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a StringParam.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Text* HGL::Type::IProjectFactory::createText ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Text.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual Vector2D* HGL::Type::IProjectFactory::createVector2D ( float  x,
float  y,
int  line = -1 
) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a Vector2D.

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

Implemented in HGL::Type::DefaultProjectFactory.

virtual VirtualGroup* HGL::Type::IProjectFactory::createVirtualGroup ( int  line = -1) const
throw (Exception::ProjectFactoryException
)
pure virtual

Creates a VirtualGroup.

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

Implemented in HGL::Type::DefaultProjectFactory.