|
|
| ezOpenDdlWriter () |
| | Constructor.
|
| |
|
void | SetOutputStream (ezStreamWriter *pOutput) |
| | All output is written to this binary stream.
|
| |
|
void | SetCompactMode (bool bCompact) |
| | Configures how much whitespace is output.
|
| |
|
void | SetPrimitiveTypeStringMode (TypeStringMode mode) |
| | Configures how verbose the type strings are going to be written.
|
| |
|
void | SetFloatPrecisionMode (FloatPrecisionMode mode) |
| | Configures how float values are output.
|
| |
|
FloatPrecisionMode | GetFloatPrecisionMode () const |
| | Returns how float values are output.
|
| |
| void | SetIndentation (ezInt8 iIndentation) |
| | Sets the base indentation level for output formatting.
|
| |
|
void | BeginObject (ezStringView sType, ezStringView sName={}, bool bGlobalName=false, bool bSingleLine=false) |
| | Begins outputting an object.
|
| |
|
void | EndObject () |
| | Ends outputting an object.
|
| |
|
void | BeginPrimitiveList (ezOpenDdlPrimitiveType type, ezStringView sName={}, bool bGlobalName=false) |
| | Begins outputting a list of primitives of the given type.
|
| |
|
void | EndPrimitiveList () |
| | Ends outputting the list of primitives.
|
| |
|
void | WriteBool (const bool *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteInt8 (const ezInt8 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteInt16 (const ezInt16 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteInt32 (const ezInt32 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteInt64 (const ezInt64 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteUInt8 (const ezUInt8 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteUInt16 (const ezUInt16 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteUInt32 (const ezUInt32 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteUInt64 (const ezUInt64 *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteFloat (const float *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteDouble (const double *pValues, ezUInt32 uiCount=1) |
| | Writes a number of values to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
|
void | WriteString (const ezStringView &sString) |
| | Writes a single string to the primitive list. Can be called multiple times between BeginPrimitiveList() / EndPrimitiveList().
|
| |
| void | WriteBinaryAsString (const void *pData, ezUInt32 uiBytes) |
| | Writes binary data as a hexadecimal string to the primitive list.
|
| |
|
|
EZ_ALWAYS_INLINE void | OutputString (ezStringView s) |
| |
|
EZ_ALWAYS_INLINE void | OutputString (ezStringView s, ezUInt32 uiElementCount) |
| |
|
void | OutputEscapedString (const ezStringView &string) |
| |
|
void | OutputIndentation () |
| |
|
void | OutputPrimitiveTypeNameCompliant (ezOpenDdlPrimitiveType type) |
| |
|
void | OutputPrimitiveTypeNameShort (ezOpenDdlPrimitiveType type) |
| |
|
void | OutputPrimitiveTypeNameShortest (ezOpenDdlPrimitiveType type) |
| |
|
void | WritePrimitiveType (ezOpenDdlWriter::State exp) |
| |
| void | OutputObjectName (ezStringView sName, bool bGlobalName) |
| |
|
void | WriteBinaryAsHex (const void *pData, ezUInt32 uiBytes) |
| |
|
void | OutputObjectBeginning () |
| |
Writes OpenDDL documents to a stream with configurable formatting.
OpenDDL (Open Data Description Language) is a text format for describing structured data. This writer generates OpenDDL text from programmatically created object hierarchies and primitive data. Supports various output modes including compact/verbose formatting, different type name styles, and precise floating-point representation. Objects and primitive lists can be nested arbitrarily. Call SetOutputStream() first, then use BeginObject/EndObject and BeginPrimitiveList/EndPrimitiveList pairs.