C4 Engine
C4 Engine API Documentation

class PrimitiveStructure

Defined in:  TSOpenDDL.h
The PrimitiveStructure class is the base class for built-in primitive data structures in an OpenDDL file.
Definition

class PrimitiveStructure : public Structure

Member Functions
PrimitiveStructure::GetArraySize Returns the array size for a primitive data type.
PrimitiveStructure::GetStateFlag Returns a boolean value indicating whether state data is present.
Constructor

PrimitiveStructure(StructureType type);

Parameters
type The type of the structure.
Description
The PrimitiveStructure class is the base class for all objects that represent built-in primitive data structures in an Open Data Description Language (OpenDDL) file. Specific types of primitive data structures are represented by specializations of the DataStructure class template.

The base structure type returned by the Structure::GetBaseStructureType function for all built-in primitive data structures is kStructurePrimitive.
Base Classes
Structure A primitive structure is a special type of Structure object.
See Also

DataStructure