diff options
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/template.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/server/src/template.h b/server/src/template.h index 031f068..1ca69ff 100644 --- a/server/src/template.h +++ b/server/src/template.h @@ -31,39 +31,42 @@ #include <string> #include <map> +typedef std::map< std::string, std::string > attr_t; + class Widget { public: std::vector< Widget > widgets; - std::map< std::string, std::string > attributes; + attr_t attributes; }; class Script { public: - std::map< std::string, std::string > attributes; + attr_t attributes; }; class Map { public: - std::map< std::string, std::string > attributes; + attr_t attributes; }; +typedef std::vector< Map > maps_t; class Query { public: - std::map< std::string, std::string > attributes; + attr_t attributes; }; class Resume { public: - std::map< std::string, std::string > attributes; + attr_t attributes; }; class Macro { public: std::vector< Query > queries; - std::vector< Map > maps; + maps_t maps; std::vector< Script > scripts; Widget widgets; - std::map< std::string, std::string > attributes; + attr_t attributes; Resume resume; bool isHeader; }; @@ -71,7 +74,7 @@ public: class Template { public: std::vector< Macro > macros; - std::map< std::string, std::string > attributes; + attr_t attributes; }; #endif/*__PRACRO_TEMPLATE_H__*/ |