OpenDdl namespace
OpenDDL parser.
Contents
- Reference
Parser for OpenDDL file format. See OpenDdl::
This library is built if WITH_OPENDDL is enabled when building Magnum Plugins. To use this library with CMake, you need to request the OpenDdl component of the MagnumPlugins package and link to the MagnumPlugins::OpenDdl target:
find_package(MagnumPlugins REQUIRED OpenDdl) # ... target_link_libraries(your-app MagnumPlugins::OpenDdl)
Namespaces
- namespace Validation
- OpenDDL document validation.
Classes
- struct CharacterLiteral
- Character literal.
- class Document
- OpenDDL document.
- class Property
- OpenDDL property.
- class Structure
- OpenDDL structure.
Enums
- enum class Type: UnsignedInt { Bool, UnsignedByte, Byte, UnsignedShort, Short, UnsignedInt, Int, UnsignedLong, Long, Float, Double, String, Reference, Type, Custom }
- OpenDDL type.
- enum class PropertyType: UnsignedByte { Bool, UnsignedByte, Byte, UnsignedShort, Short, UnsignedInt, Int, UnsignedLong, Long, Float, Double, String, Reference, Type }
- Property type.
- enum (anonymous): Int { UnknownIdentifier = INT16_MAX - Int(Type::Custom) }
Functions
- auto operator<<(Debug& debug, Type value) -> Debug&
- Debug output operator.
- auto operator<<(Debug& debug, PropertyType value) -> Debug&
- Debug output operator.
Enum documentation
enum class Magnum:: OpenDdl:: Type: UnsignedInt
OpenDDL type.
| Enumerators | |
|---|---|
| Bool |
Boolean. Stored in |
| UnsignedByte |
Unsigned byte (8 bit). Stored in UnsignedByte type. |
| Byte |
Signed byte (8 bit). Stored in Byte type. |
| UnsignedShort |
Unsigned short (16 bit). Stored in UnsignedShort type. |
| Short |
Signed short (16 bit). Stored in Short type. |
| UnsignedInt |
Unsigned int (32 bit). Stored in UnsignedInt type. |
| Int |
Signed int (32 bit). Stored in Int type. |
| UnsignedLong |
Unsigned long (64 bit). Stored in UnsignedLong type. |
| Long |
Long (64 bit). Stored in Long type. |
| Float |
Float (32 bit). Stored in Float type. |
| Double |
Double (64 bit). Stored in Double type. |
| String |
UTF-8 string. Stored in std:: |
| Reference |
ASCII reference string. Stored in std:: |
| Type |
Type enumeration. Stored in Type type. |
| Custom |
Custom structure type |
enum class Magnum:: OpenDdl:: PropertyType: UnsignedByte
Property type.
Because of parsing ambiguity, the properties are internally stored only in a subset of types. The remaining types are just for use in Property::
| Enumerators | |
|---|---|
| Bool |
Boolean. Stored in |
| UnsignedByte |
Unsigned byte (8 bit). Stored as if it is PropertyType:: |
| Byte |
Signed byte (8 bit). Stored as if it is PropertyType:: |
| UnsignedShort |
Unsigned short (16 bit). Stored as if it is PropertyType:: |
| Short |
Signed short (16 bit). Stored as if it is PropertyType:: |
| UnsignedInt |
Unsigned int (32 bit). Stored as if it is PropertyType:: |
| Int |
Signed int (32 bit). Stored in Int type. |
| UnsignedLong |
Unsigned long (64 bit). Stored as if it is PropertyType:: |
| Long |
Long (64 bit). Stored as if it is PropertyType:: |
| Float |
Float (32 bit). Stored in Float type. |
| Double |
Double (64 bit). Stored as if it is PropertyType:: |
| String |
UTF-8 string. Stored in std:: |
| Reference |
ASCII reference string. Stored in std:: |
| Type |
Type enumeration. Stored in Type type. |
enum Magnum:: OpenDdl:: (anonymous): Int
| Enumerators | |
|---|---|
| UnknownIdentifier |
Identifier which was not in the identifier list passed to Document:: |
Function documentation
Debug& Magnum:: OpenDdl:: operator<<(Debug& debug,
Type value)
Debug output operator.
Debug& Magnum:: OpenDdl:: operator<<(Debug& debug,
PropertyType value)
Debug output operator.