HGL::Type::Project Class Reference
[Types]

#include <project.h>

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

List of all members.

Public Member Functions

virtual MainSegmentaddMainSegment (MainSegment *ms)
 Adds the main segment.
virtual ObjectsSegmentaddObjectsSegment (ObjectsSegment *os)
 Adds the objects segment.
virtual ProceduresSegmentaddProceduresSegment (ProceduresSegment *ps)
 Adds the procedures segment.
const SerialIDgetSerialID () const
 Gets the serialization ID of the object.
virtual bool isValid () const

Detailed Description

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

HGL::Type::MainSegment * Project::addMainSegment ( MainSegment ms  )  [virtual]

Adds the main segment.

Parameters:
ms the main segment
Returns:
the attached main segment

Implements HGL::Type::IProject.

HGL::Type::ObjectsSegment * Project::addObjectsSegment ( ObjectsSegment os  )  [virtual]

Adds the objects segment.

Parameters:
os the objects segment
Returns:
the attached objects segment

Implements HGL::Type::IProject.

HGL::Type::ProceduresSegment * Project::addProceduresSegment ( ProceduresSegment ps  )  [virtual]

Adds the procedures segment.

Parameters:
ps the procedures segment
Returns:
the attached procedures segment

Implements HGL::Type::IProject.

const HGL::Type::SerialID & Project::getSerialID (  )  const [virtual]

Gets the serialization ID of the object.

Returns:
the serialization ID of the object

Implements HGL::IType.

bool Project::isValid (  )  const [virtual]

A Project is valid if it at least contains a MainSegment.

Note:
this method returns false if the type has no attached subtypes. A type is valid

  1. if all attached types are allowed for this type, if not the type is invalid
  2. if all attached types itself are valid, if not the type is invalid
Subclasses can add more checks if neccessary.Checks if the type is valid.

Reimplemented from HGL::Type::NonEmptyType.


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