This is a creation in Article, where the information may have evolved or changed.
/* This file was generated by Genxml. *//* No Manual modification is permitted. */#pragma once#include "Define.h" #include <string>{{define "Setattri"}}{{if eq. Type "int"}}m_i{{. Name}} = 0; {{End}} {{if Eq.} Type "string"}}m_str{{. Name}}.clear (); {{End}} {{End}} {{define ' Attri '}} {{if Eq.} Type "int"}}int32_t m_i{{. Name}}; {{End}} {{if Eq.} Type "string"}}std::string m_str{{. Name}}; {{End}} {{End}} {{define ' Token '}} {{Add_tab}} {{gen_tab}}struct st{{.} name}}{{gen_tab}}{{{gen_tab}}st{{. Name}} () {{Gen_tab}}{{{gen_tab}}{{range. Attributes}}{{gen_tab}}{{template "Setattri".}} {{Gen_tab}} {{End}} {{Gen_tab}}} {{Gen_tab}} {{range.} Attributes}}{{gen_tab}}{{template "Attri".}} {{Gen_tab}} {{End}} {{range.} Tokens}}{{template "Token".}} {{End}} {{Gen_tab}}} {{Dec_tab}} {{End}}namespace proj{class c{{.} Name}}loader{public:{{add_tab}}struct st{{. name}}{st{{. Name}} () {{{range.} Attributes}}{{template "Setattri".}} {{End}}} {{range.} Attributes}}{{template "Attri".}} {{End}} {{range.} Tokens}}{{template "Token".}} {{end}}}; Const st{{. Name}} & get{{. Name}} () {return m_st{{. Name}}; } virtual bool Loadcfg ()/*= 0*/; private:st{{. Name}} m_st{{. Name}};