From ac4be2d9b4b90b4061c43e66754bfc60945ebabe Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 5 Jul 2010 07:03:34 +0000 Subject: Partial commit: Add typedefs of map/vector classes. --- server/src/template.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'server/src/template.h') 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 #include +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__*/ -- cgit v1.2.3