Athena IO Library
athena::io::YAMLDocReader Class Reference
Collaboration diagram for athena::io::YAMLDocReader:
Collaboration graph

Public Member Functions

void reset ()
 
yaml_parser_t * getParser ()
 
bool parse (athena::io::IStreamReader *reader)
 
bool ClassTypeOperation (std::function< bool(const char *dnaType)> func)
 
bool ValidateClassType (const char *expectedType)
 
const YAMLNodegetRootNode () const
 
const YAMLNodegetCurNode () const
 
std::unique_ptr< YAMLNodereleaseRootNode ()
 
bool enterSubRecord (const char *name)
 
void leaveSubRecord ()
 
template<class T >
void enumerate (const char *name, T &record)
 
bool enterSubVector (const char *name, size_t &countOut)
 
void leaveSubVector ()
 
template<class T >
size_t enumerate (const char *name, std::vector< T > &vector, typename std::enable_if<!std::is_arithmetic< T >::value &&!std::is_same< T, atVec2f >::value &&!std::is_same< T, atVec3f >::value &&!std::is_same< T, atVec4f >::value >::type *=0)
 
template<class T >
size_t enumerate (const char *name, std::vector< T > &vector, typename std::enable_if< std::is_arithmetic< T >::value||std::is_same< T, atVec2f >::value||std::is_same< T, atVec3f >::value||std::is_same< T, atVec4f >::value >::type *=0)
 
template<class T >
size_t enumerate (const char *name, std::vector< T > &vector, std::function< void(YAMLDocReader &, T &)> readf)
 
template<typename RETURNTYPE >
RETURNTYPE readVal (const char *name)
 
bool readBool (const char *name)
 
atInt8 readByte (const char *name)
 
atUint8 readUByte (const char *name)
 
atInt16 readInt16 (const char *name)
 
atUint16 readUint16 (const char *name)
 
atInt32 readInt32 (const char *name)
 
atUint32 readUint32 (const char *name)
 
atInt64 readInt64 (const char *name)
 
atUint64 readUint64 (const char *name)
 
float readFloat (const char *name)
 
double readDouble (const char *name)
 
atVec2f readVec2f (const char *name)
 
atVec3f readVec3f (const char *name)
 
atVec4f readVec4f (const char *name)
 
atVec2d readVec2d (const char *name)
 
atVec3d readVec3d (const char *name)
 
atVec4d readVec4d (const char *name)
 
std::unique_ptr< atUint8[]> readUBytes (const char *name)
 
std::string readString (const char *name)
 
std::wstring readWString (const char *name)
 

Detailed Description

Definition at line 496 of file DNAYaml.hpp.


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