2021-03-20 16:02:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ZResource.h"
|
|
|
|
#include "tinyxml2.h"
|
|
|
|
|
|
|
|
class ZSymbol : public ZResource
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
std::string type;
|
2021-04-30 21:23:22 +00:00
|
|
|
size_t typeSize;
|
2021-03-20 16:02:12 +00:00
|
|
|
bool isArray = false;
|
|
|
|
uint32_t count = 0;
|
|
|
|
|
|
|
|
public:
|
2021-04-30 21:23:22 +00:00
|
|
|
ZSymbol(ZFile* nParent);
|
2021-03-20 16:02:12 +00:00
|
|
|
|
|
|
|
void ParseXML(tinyxml2::XMLElement* reader) override;
|
|
|
|
|
2021-10-17 11:32:09 +00:00
|
|
|
Declaration* DeclareVar(const std::string& prefix, const std::string& bodyStr) override;
|
2021-03-20 16:02:12 +00:00
|
|
|
|
|
|
|
std::string GetSourceOutputHeader(const std::string& prefix) override;
|
|
|
|
|
2021-05-30 15:09:59 +00:00
|
|
|
std::string GetSourceTypeName() const override;
|
|
|
|
ZResourceType GetResourceType() const override;
|
2021-10-17 11:32:09 +00:00
|
|
|
|
|
|
|
size_t GetRawDataSize() const override;
|
2021-03-20 16:02:12 +00:00
|
|
|
};
|