2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-04 10:11:53 +00:00

Dump struct member names

This commit is contained in:
Jan
2022-03-20 17:38:48 +01:00
parent c52d129db1
commit 996528eba5
2 changed files with 42 additions and 6 deletions

View File

@ -1,5 +1,7 @@
#pragma once
#include <ostream>
#include <string>
#include <vector>
#include "Dumping/AbstractTextDumper.h"
#include "StructuredDataDef/CommonStructuredDataDef.h"
@ -14,7 +16,9 @@ class StructuredDataDefDumperNew : AbstractTextDumper
void WriteLineComment(const std::string& comment) const;
void DumpEnum(const CommonStructuredDataEnum& _enum);
void DumpStruct(const CommonStructuredDataStruct& _struct);
void DumpType(const CommonStructuredDataDef& def, CommonStructuredDataType type, std::string& typeName, std::vector<std::string>& arraySpecifiersInReverseOrder);
void DumpProperty(const CommonStructuredDataDef& def, const CommonStructuredDataStructEntry& property, unsigned& currentOffsetInBit);
void DumpStruct(const CommonStructuredDataDef& def, const CommonStructuredDataStruct& _struct, size_t structIndex);
public:
explicit StructuredDataDefDumperNew(std::ostream& stream);