summaryrefslogtreecommitdiff
path: root/server/src/macrolist.cc
diff options
context:
space:
mode:
authordeva <deva>2009-07-30 07:23:42 +0000
committerdeva <deva>2009-07-30 07:23:42 +0000
commit965506c3e9ab1dca32c7be51c0271af78721c821 (patch)
tree559c30c1c30393f30df8b0e1f941c43cdaafddbf /server/src/macrolist.cc
parent2239aeea03f5d8321f1a8e14551690cc0bebdb56 (diff)
Updated the example template to contain new tags/attributes.
Diffstat (limited to 'server/src/macrolist.cc')
-rw-r--r--server/src/macrolist.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/src/macrolist.cc b/server/src/macrolist.cc
index e8bc507..0e86a47 100644
--- a/server/src/macrolist.cc
+++ b/server/src/macrolist.cc
@@ -68,6 +68,21 @@ MacroList::MacroList(std::string macropath)
(*this)[macro->attributes["name"]][VersionStr(macro->attributes["version"])] = *i;
i++;
}
+
+ {
+ iterator i = begin();
+ while(i != end()) {
+ MacroListItem::iterator j = i->second.begin();
+ while(j != i->second.end()) {
+ PRACRO_DEBUG(macrolist, "%s - v%s file: %s\n",
+ i->first.c_str(),
+ ((std::string)j->first).c_str(),
+ j->second.c_str());
+ j++;
+ }
+ i++;
+ }
+ }
}
std::string MacroList::getLatestVersion(std::string macro) throw(Exception)