ChasmDefines_Components


This deals with assigning and checking Components in the Concept, ie. the Director, and Builder based upon their CIF. The defines are:

CHASMDECLARECOMPONENTS_PUBLIC
CHASMDECLARECOMPONENTS_PROTECTED
CHASMDECLARECOMPONENTS_PRIVATE
CHASMASSIGNCOMPONENTS
CHASMCHECKCOMPONENTS
CHASMCHECKCOMPONENTSBUILDER

Declares

This declares the components to be part of this Concept at the given access level. As an example, in the WorldObject, there is a component called position of Concept Position. The code for it would be:

    Position* position;

Assign

This assigns the declared components in the concept from the parameters. This is based upon the CIF.

Created and Vacant:
Sets them to NULL.

Passed and Potential:
Sets them to the passed in Component values.

Checking in Concept

Created and Passed:
Ignored as could be set in the Builder.

Vacant:
Should still be NULL.

Potential:
Not checked.

Checking in the Builder

Creating and Passed:
Should be set to something or else error out.

Vacant or Potential:
Ignored.