From 965506c3e9ab1dca32c7be51c0271af78721c821 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 30 Jul 2009 07:23:42 +0000 Subject: Updated the example template to contain new tags/attributes. --- server/src/macrolist.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'server/src/macrolist.cc') 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) -- cgit v1.2.3