Structures
An OpenDDL file is composed of a sequence of structures that can be either user-defined types or built-in primitive data types. The declaration of a structure consists of an identifier followed by an optional name, an optional property list, and finally, the structure's contents enclosed in braces. Raw data is always contained within structures whose identifiers are one of the data types described in the next section. For example, one may define aPoint
structure that holds the floating-point coordinates of a three-dimensional point as follows.
Point
Structures can have names that allow them to be referenced from other parts of the file. Names can be global (unique throughout the file) or local (unique within the enclosing structure). A global name consists of a dollar sign followed by an identifier, and a local name consists of a percent sign followed by a dollar sign. The Point
structure above could be given the global name "position" as follows.
Point $position
Another structure could then include a reference to this point by using the ref
data type:
ref
Data types
OpenDDL defines the 15 primitive data types described in the following table. Each type has at a long name and a short name. Additionally, the floating-point types each have alternate long and short names.Compatible Libraries
References
{{reflistExternal links