diff options
author | deva <deva> | 2010-07-05 07:03:34 +0000 |
---|---|---|
committer | deva <deva> | 2010-07-05 07:03:34 +0000 |
commit | ac4be2d9b4b90b4061c43e66754bfc60945ebabe (patch) | |
tree | 31d53d48be467ae6e08db4f38c55193e550a3f9b /server | |
parent | 868ef551f926bdb110e5f84fb3395b8553205914 (diff) |
Partial commit: Add typedefs of map/vector classes.
Diffstat (limited to 'server')
-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__*/ |