An OpenDDL reader parses an entire DDL document and creates an in-memory representation of the document structure.
More...
|
virtual void | OnBeginObject (ezStringView sType, ezStringView sName, bool bGlobalName) override |
| Called when a new object is encountered.
|
|
virtual void | OnEndObject () override |
| Called when the end of an object is encountered.
|
|
virtual void | OnBeginPrimitiveList (ezOpenDdlPrimitiveType type, ezStringView sName, bool bGlobalName) override |
| Called when a new primitive object is encountered.
|
|
virtual void | OnEndPrimitiveList () override |
| Called when the end of a primitive object is encountered.
|
|
virtual void | OnPrimitiveBool (ezUInt32 count, const bool *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time. More...
|
|
virtual void | OnPrimitiveInt8 (ezUInt32 count, const ezInt8 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveInt16 (ezUInt32 count, const ezInt16 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveInt32 (ezUInt32 count, const ezInt32 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveInt64 (ezUInt32 count, const ezInt64 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveUInt8 (ezUInt32 count, const ezUInt8 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveUInt16 (ezUInt32 count, const ezUInt16 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveUInt32 (ezUInt32 count, const ezUInt32 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveUInt64 (ezUInt32 count, const ezUInt64 *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveFloat (ezUInt32 count, const float *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveDouble (ezUInt32 count, const double *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnPrimitiveString (ezUInt32 count, const ezStringView *pData, bool bThisIsAll) override |
| Called when data for a primitive type is available. More than one value may be reported at a time.
|
|
virtual void | OnParsingError (ezStringView sMessage, bool bFatal, ezUInt32 uiLine, ezUInt32 uiColumn) override |
| Called when something unexpected is encountered in the document. More...
|
|
ezOpenDdlReaderElement * | CreateElement (ezOpenDdlPrimitiveType type, ezStringView sType, ezStringView sName, bool bGlobalName) |
|
ezStringView | CopyString (const ezStringView &string) |
|
void | StorePrimitiveData (bool bThisIsAll, ezUInt32 bytecount, const ezUInt8 *pData) |
|
void | ClearDataChunks () |
|
ezUInt8 * | AllocateBytes (ezUInt32 uiNumBytes) |
|
void | SetLogInterface (ezLogInterface *pLog) |
| Sets an ezLogInterface through which errors and warnings are reported.
|
|
void | SetCacheSize (ezUInt32 uiSizeInKB) |
| Data is returned in larger chunks, to reduce the number of function calls. The cache size determines the maximum chunk size per primitive type. More...
|
|
void | SetInputStream (ezStreamReader &stream, ezUInt32 uiFirstLineOffset=0) |
| Configures the parser to read from the given stream. This can only be called once on a parser instance.
|
|
bool | ContinueParsing () |
| Call this to parse the next piece of the document. This may trigger a callback through which data is returned. More...
|
|
ezResult | ParseAll () |
| Calls ContinueParsing() in a loop until that returns false.
|
|
void | SkipRestOfObject () |
| Skips the rest of the currently open object. No OnEndObject() call will be done for this object either.
|
|
void | StopParsing () |
| Can be used to prevent parsing the rest of the document.
|
|
void | ParsingError (ezStringView sMessage, bool bFatal) |
| Outputs that a parsing error was detected (via OnParsingError) and stops further parsing, if bFatal is set to true.
|
|
An OpenDDL reader parses an entire DDL document and creates an in-memory representation of the document structure.