diff options
author | deva <deva> | 2009-07-30 08:36:12 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-30 08:36:12 +0000 |
commit | 77272458e7a8906d871b241b5385bbd0f783d861 (patch) | |
tree | 7e32f988654c042be251c4ba31b72902402059f3 /server/src/macrotool_dump.cc | |
parent | 1f8c58836dfd8dc8c9a0abeeaef6789325189f1b (diff) |
Removed the term 'course' everywhere, and replaced it by 'template'. This reduced/simplified the Template class structure a bit.
Diffstat (limited to 'server/src/macrotool_dump.cc')
-rw-r--r-- | server/src/macrotool_dump.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/server/src/macrotool_dump.cc b/server/src/macrotool_dump.cc index 3f9cfd7..71bc690 100644 --- a/server/src/macrotool_dump.cc +++ b/server/src/macrotool_dump.cc @@ -89,14 +89,14 @@ static std::map<std::string, struct _macro> macroList() std::vector<std::string> templatefiles = getTemplates(); std::vector<std::string>::iterator tfs = templatefiles.begin(); while(tfs != templatefiles.end()) { - std::string course = tfs->substr(0, tfs->length() - 4); - TemplateParser parser(course); + std::string templ = tfs->substr(0, tfs->length() - 4); + TemplateParser parser(templ); parser.parse(); Template *t = parser.getTemplate(); - std::vector<Macro>::iterator ms = t->course.macros.begin(); - while(ms != t->course.macros.end()) { + std::vector<Macro>::iterator ms = t->macros.begin(); + while(ms != t->macros.end()) { if(ms->attributes.find("header") == ms->attributes.end()) - macros[ms->attributes["name"]].templates.insert(course); + macros[ms->attributes["name"]].templates.insert(templ); ms++; } tfs++; @@ -154,20 +154,20 @@ static std::map<std::string, struct _template> templateList() std::vector<std::string> templatefiles = getTemplates(); std::vector<std::string>::iterator tfs = templatefiles.begin(); while(tfs != templatefiles.end()) { - std::string course = tfs->substr(0, tfs->length() - 4); - TemplateParser parser(course); + std::string templ = tfs->substr(0, tfs->length() - 4); + TemplateParser parser(templ); parser.parse(); Template *t = parser.getTemplate(); - std::string key = t->course.attributes["name"]; + std::string key = t->attributes["name"]; templates[key].file = *tfs; - templates[key].name = t->course.attributes["name"]; - templates[key].title = t->course.attributes["title"]; - templates[key].version = t->course.attributes["version"]; + templates[key].name = t->attributes["name"]; + templates[key].title = t->attributes["title"]; + templates[key].version = t->attributes["version"]; - std::vector<Macro>::iterator ms = t->course.macros.begin(); - while(ms != t->course.macros.end()) { + std::vector<Macro>::iterator ms = t->macros.begin(); + while(ms != t->macros.end()) { if(ms->attributes.find("header") == ms->attributes.end()) templates[key].macros.push_back(ms->attributes["name"]); ms++; |