25 lines
1.2 KiB
C++
25 lines
1.2 KiB
C++
#ifndef CTEMPLATEWRITER_H
|
|
#define CTEMPLATEWRITER_H
|
|
|
|
#include "../script/CMasterTemplate.h"
|
|
#include "../script/CScriptTemplate.h"
|
|
|
|
class CTemplateWriter
|
|
{
|
|
CTemplateWriter();
|
|
|
|
public:
|
|
static void SaveAllTemplates();
|
|
static void SaveGameTemplates(CMasterTemplate *pMaster, const std::string& dir);
|
|
static void SavePropertyList(CMasterTemplate *pMaster, const std::string& dir);
|
|
static void SaveScriptTemplate(CScriptTemplate *pTemp, const std::string& dir);
|
|
static void SaveStructTemplate(CStructTemplate *pTemp, CMasterTemplate *pMaster, const std::string& dir);
|
|
static void SaveEnumTemplate(CEnumTemplate *pTemp, const std::string& dir);
|
|
static void SaveBitfieldTemplate(CBitfieldTemplate *pTemp, const std::string& dir);
|
|
static void SaveProperties(tinyxml2::XMLDocument *pDoc, tinyxml2::XMLElement *pParent, CStructTemplate *pTemp, CMasterTemplate *pMaster, const std::string& dir);
|
|
static void SaveEnumerators(tinyxml2::XMLDocument *pDoc, tinyxml2::XMLElement *pParent, CEnumTemplate *pTemp);
|
|
static void SaveBitFlags(tinyxml2::XMLDocument *pDoc, tinyxml2::XMLElement *pParent, CBitfieldTemplate *pTemp);
|
|
};
|
|
|
|
#endif // CTEMPLATEWRITER_H
|