60 void BeginPrimitiveList(plOpenDdlPrimitiveType type,
plStringView sName = {},
bool bGlobalName =
false);
63 void EndPrimitiveList();
66 void WriteBool(
const bool* pValues, plUInt32 uiCount = 1);
69 void WriteInt8(
const plInt8* pValues, plUInt32 uiCount = 1);
72 void WriteInt16(
const plInt16* pValues, plUInt32 uiCount = 1);
75 void WriteInt32(
const plInt32* pValues, plUInt32 uiCount = 1);
78 void WriteInt64(
const plInt64* pValues, plUInt32 uiCount = 1);
81 void WriteUInt8(
const plUInt8* pValues, plUInt32 uiCount = 1);
84 void WriteUInt16(
const plUInt16* pValues, plUInt32 uiCount = 1);
87 void WriteUInt32(
const plUInt32* pValues, plUInt32 uiCount = 1);
90 void WriteUInt64(
const plUInt64* pValues, plUInt32 uiCount = 1);
93 void WriteFloat(
const float* pValues, plUInt32 uiCount = 1);
96 void WriteDouble(
const double* pValues, plUInt32 uiCount = 1);
102 void WriteBinaryAsString(
const void* pData, plUInt32 uiBytes);
110 ObjectSingleLine = -3,
111 ObjectMultiLine = -2,
129 State m_State = State::Empty;
130 bool m_bPrimitivesWritten =
false;
134 PL_ALWAYS_INLINE
void OutputString(
plStringView s, plUInt32 uiElementCount) { m_pOutput->WriteBytes(s.
GetStartPointer(), uiElementCount).IgnoreResult(); }
136 void OutputIndentation();
137 void OutputPrimitiveTypeNameCompliant(plOpenDdlPrimitiveType type);
138 void OutputPrimitiveTypeNameShort(plOpenDdlPrimitiveType type);
139 void OutputPrimitiveTypeNameShortest(plOpenDdlPrimitiveType type);
140 void WritePrimitiveType(plOpenDdlWriter::State exp);
141 void OutputObjectName(
plStringView sName,
bool bGlobalName);
142 void WriteBinaryAsHex(
const void* pData, plUInt32 uiBytes);
143 void OutputObjectBeginning();
145 plInt32 m_iIndentation = 0;
146 bool m_bCompactMode =
false;
147 TypeStringMode m_TypeStringMode = TypeStringMode::ShortenedUnsignedInt;
148 FloatPrecisionMode m_FloatPrecisionMode = FloatPrecisionMode::Exact;
void SetIndentation(plInt8 iIndentation)
Allows to set the indentation. Negative values are possible. This makes it possible to set the indent...
Definition OpenDdlWriter.h:51
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34