diff options
Diffstat (limited to 'server/src/queryresult.h')
-rw-r--r-- | server/src/queryresult.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/server/src/queryresult.h b/server/src/queryresult.h index de95a49..f734303 100644 --- a/server/src/queryresult.h +++ b/server/src/queryresult.h @@ -41,18 +41,21 @@ public: std::map< std::string, QueryResult > groups; void print(std::string tabs = "") { - PRACRO_DEBUG(queryhandler,"%sTimestamp: %d\n", tabs.c_str(), (int)timestamp); - PRACRO_DEBUG(queryhandler,"%sSource: %s\n", tabs.c_str(), source.c_str()); - PRACRO_DEBUG(queryhandler,"%sValues:\n", tabs.c_str()); - for(std::map< std::string, std::string >::iterator i = values.begin(); i != values.end(); i++) { - PRACRO_DEBUG(queryhandler,"%s[%s] => [%s]\n", tabs.c_str(), i->first.c_str(), i->second.c_str()); + DEBUG(queryhandler,"%sTimestamp: %d\n", tabs.c_str(), (int)timestamp); + DEBUG(queryhandler,"%sSource: %s\n", tabs.c_str(), source.c_str()); + DEBUG(queryhandler,"%sValues:\n", tabs.c_str()); + for(std::map< std::string, std::string >::iterator i = values.begin(); + i != values.end(); i++) { + DEBUG(queryhandler,"%s[%s] => [%s]\n", + tabs.c_str(), i->first.c_str(), i->second.c_str()); } - PRACRO_DEBUG(queryhandler,"%s{\n", tabs.c_str()); - for(std::map< std::string, QueryResult >::iterator i = groups.begin(); i != groups.end(); i++) { - PRACRO_DEBUG(queryhandler,"%s[%s] =>:\n", tabs.c_str(), i->first.c_str()); + DEBUG(queryhandler,"%s{\n", tabs.c_str()); + for(std::map< std::string, QueryResult >::iterator i = groups.begin(); + i != groups.end(); i++) { + DEBUG(queryhandler,"%s[%s] =>:\n", tabs.c_str(), i->first.c_str()); i->second.print(tabs +" "); } - PRACRO_DEBUG(queryhandler,"%s}\n", tabs.c_str()); + DEBUG(queryhandler,"%s}\n", tabs.c_str()); } }; |