2021-01-22 21:25:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-12-03 20:57:05 +00:00
|
|
|
#include <cstdint>
|
2021-03-20 16:02:12 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2021-01-22 21:25:08 +00:00
|
|
|
#include "ZResource.h"
|
|
|
|
#include "tinyxml2.h"
|
|
|
|
|
|
|
|
class ZArray : public ZResource
|
|
|
|
{
|
|
|
|
public:
|
2021-04-30 21:23:22 +00:00
|
|
|
ZArray(ZFile* nParent);
|
|
|
|
~ZArray();
|
2021-01-22 21:25:08 +00:00
|
|
|
|
|
|
|
void ParseXML(tinyxml2::XMLElement* reader) override;
|
2021-05-30 15:09:59 +00:00
|
|
|
|
2021-10-17 11:32:09 +00:00
|
|
|
Declaration* DeclareVar(const std::string& prefix, const std::string& bodyStr) override;
|
|
|
|
std::string GetBodySourceCode() const override;
|
|
|
|
|
2021-05-30 15:09:59 +00:00
|
|
|
size_t GetRawDataSize() const override;
|
2021-01-22 21:25:08 +00:00
|
|
|
|
2021-10-17 11:32:09 +00:00
|
|
|
std::string GetSourceTypeName() const override;
|
2021-05-30 15:09:59 +00:00
|
|
|
ZResourceType GetResourceType() const override;
|
2021-01-22 21:25:08 +00:00
|
|
|
|
2021-10-17 11:32:09 +00:00
|
|
|
DeclarationAlignment GetDeclarationAlignment() const override;
|
|
|
|
|
2021-01-22 21:25:08 +00:00
|
|
|
protected:
|
2021-04-30 21:23:22 +00:00
|
|
|
size_t arrayCnt;
|
2021-05-30 15:09:59 +00:00
|
|
|
std::string childName;
|
|
|
|
std::vector<ZResource*> resList;
|
|
|
|
};
|