ezEngine  Milestone 7
ezExtendedJSONReader Class Reference

This JSON reader works mostly like its base type ezJSONReader, but also converts 'extended' types back into strongly typed ezVariant's. More...

#include <ExtendedJSONReader.h>

Inheritance diagram for ezExtendedJSONReader:

Protected Member Functions

virtual void OnEndObject () override
 [internal] Do not override further.
 

Additional Inherited Members

- Public Member Functions inherited from ezJSONReader
ezResult Parse (ezStreamReaderBase &pInput, ezUInt32 uiFirstLineOffset=0)
 Reads the entire stream and creates the internal data structure that represents the JSON document. Returns EZ_FAILURE if any parsing error occurred.
 
const ezVariantDictionaryGetTopLevelObject () const
 Returns the top-level object of the JSON document.
 
- Protected Types inherited from ezJSONReader
enum  ElementMode : ezInt8 { Array, Dictionary }
 
- Protected Attributes inherited from ezJSONReader
ezHybridArray< Element, 32 > m_Stack
 
bool m_bParsingError
 
ezString m_sLastName
 

Detailed Description

This JSON reader works mostly like its base type ezJSONReader, but also converts 'extended' types back into strongly typed ezVariant's.

This reader reads files written with ezExtendedJSONWriter and converts the extended type information and data back into a strongly typed ezVariant. Thus this format can store ints, floats, doubles, vectors, matrices, etc. without losing precision, whereas standard JSON will always use doubles for all value types.


The documentation for this class was generated from the following files: