mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
taml binary parsing
added taml binary parser
This commit is contained in:
parent
55afef7b3d
commit
140e9dbfc6
3 changed files with 218 additions and 0 deletions
37
Engine/source/persistence/taml/binary/tamlBinaryParser.h
Normal file
37
Engine/source/persistence/taml/binary/tamlBinaryParser.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#pragma once
|
||||
#ifndef _TAML_BINARYPARSER_H_
|
||||
|
||||
#ifndef _TAML_PARSER_H_
|
||||
#include "persistence/taml/tamlParser.h"
|
||||
#endif
|
||||
|
||||
#ifndef _TAML_VISITOR_H_
|
||||
#include "persistence/taml/tamlVisitor.h"
|
||||
#endif
|
||||
|
||||
#ifndef _STREAM_H_
|
||||
#include "core/stream/stream.h"
|
||||
#endif
|
||||
|
||||
#ifndef _FILESTREAM_H_
|
||||
#include "core/stream/fileStream.h"
|
||||
#endif
|
||||
|
||||
class TamlBinaryParser : public TamlParser
|
||||
{
|
||||
public:
|
||||
TamlBinaryParser() {}
|
||||
virtual ~TamlBinaryParser() {}
|
||||
|
||||
/// Whether the parser can change a property or not.
|
||||
bool canChangeProperty(void) override { return false; }
|
||||
|
||||
/// Accept visitor.
|
||||
bool accept(const char* pFilename, TamlVisitor& visitor) override;
|
||||
|
||||
private:
|
||||
bool parseElement(Stream& stream, TamlVisitor& visitor, const U32 versionId);
|
||||
bool parseCustomNode(Stream& stream, TamlVisitor& visitor, const U32 versionId);
|
||||
};
|
||||
|
||||
#endif // !_TAML_BINARYPARSER_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue