Convenience class for implementing HGL::Type::IProjectFactory. More...
#include <defaultprojectfactory.h>

Public Member Functions | |
| virtual AssignmentOperator * | createAssignmentOperator (const std::string &id, IType *typeL, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an AssignmentOperator. | |
| virtual Curve * | createCurve (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Curve. | |
| virtual DebugProcedure * | createDebugProcedure (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a DebugProcedure. | |
| virtual Ellipse * | createEllipse (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an Ellipse. | |
| virtual Fill * | createFill (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Fill. | |
| virtual Include * | createInclude (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Include. | |
| virtual Line * | createLine (IPoint *p1, IPoint *p2, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Line. | |
| virtual Line * | createLine (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Line. | |
| virtual MainSegment * | createMainSegment (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a MainSegment. | |
| virtual NamedParam * | createNamedParam (const std::string &typeName, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a NamedParam. | |
| virtual ObjectsSegment * | createObjectsSegment (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an ObjectsSegment. | |
| virtual ParamSection * | createParamSection (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a ParamSection. | |
| virtual IPoint * | createPoint (const std::string &id, const IPoint &p, bool markerPoint, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an IPoint. | |
| virtual Point * | createPoint (bool markerPoint, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Point. | |
| virtual Poly * | createPoly (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Poly. | |
| virtual ProcCall * | createProcCall (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a ProcCall. | |
| virtual Procedure * | createProcedure (const std::string &id, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Procedure. | |
| virtual ProceduresSegment * | createProceduresSegment (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a ProceduresSegment. | |
| virtual ProcInitStatement * | createProcInitStatement (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a ProcInitStatement. | |
| virtual IParam * | createProcParam (const IParam *, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an IParam. | |
| virtual FloatParam * | createProcParam (float f, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a FloatParam. | |
| virtual ReferenceParam * | createProcParam (const std::string &ref, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a ReferenceParam. | |
| virtual IProject * | createProject (const std::string &id, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates an IProject. | |
| virtual RenderCallback * | createRenderCallback (const std::string &ref, IType *stdlib, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a RenderCallback. | |
| virtual RenderProcedure * | createRenderProcedure (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a RenderProcedure. | |
| virtual Signature * | createSignature (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Signature. | |
| virtual StdLibCall * | createStdLibCall (IType *libL, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a StdLibCall. | |
| virtual StringParam * | createStringParam (const std::string &txt, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a StringParam. | |
| virtual Text * | createText (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Text. | |
| virtual Vector2D * | createVector2D (float x, float y, int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a Vector2D. | |
| virtual VirtualGroup * | createVirtualGroup (int line=-1) const throw (Exception::ProjectFactoryException) |
Creates a VirtualGroup. | |
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.
| AssignmentOperator * DefaultProjectFactory::createAssignmentOperator | ( | const std::string & | id, | |
| IType * | type, | |||
| int | line = -1 | |||
| ) | const throw (Exception::ProjectFactoryException) [virtual] |
Creates an AssignmentOperator.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| line | an optional line number or -1 (default) for none |
Implements HGL::Type::IProjectFactory.
1.6.1