src/core/trace-resolver.cc
changeset 1379 f323d2dcdaf6
parent 1377 2fcc78ee9558
child 1388 7c88861a6f8c
--- a/src/core/trace-resolver.cc	Tue Aug 28 12:42:27 2007 +0200
+++ b/src/core/trace-resolver.cc	Tue Aug 28 13:10:18 2007 +0200
@@ -76,13 +76,13 @@
 }
 
 void 
-TraceResolver::SourceCollection::AddUnique (std::string path, const TraceContext &context,
-                                            std::string help)
+TraceResolver::SourceCollection::AddUnique (std::string path, 
+                                            const TraceContext &context,
+                                            const TraceDoc &doc)
 {
   for (SourceVector::const_iterator i = m_sources.begin (); i != m_sources.end (); i++)
     {
       if (i->path == path &&
-          i->help == help &&
           context.IsSimilar (i->context))
         {
           return;
@@ -91,7 +91,7 @@
   struct Source source;
   source.path = path;
   source.context = context;
-  source.help = help;
+  source.doc = doc;
   m_sources.push_back (source);
 }
 void 
@@ -103,7 +103,14 @@
       os << "TraceContext=[";
       i->context.PrintAvailable (os, ",");
       os << "]" << std::endl;
-      os << "help=\"" << i->help << "\"" << std::endl;
+      os << "help=\"" << i->doc.GetHelp () << "\"" << std::endl;
+      os << "const TraceContext &: the trace context associated to the connected trace source." << std::endl;
+      uint32_t k = 0;
+      for (TraceDoc::Iterator j = i->doc.ArgsBegin (); j != i->doc.ArgsEnd (); j++)
+        {
+          os << "argument " << k << "  --  " << j->first << ": " << j->second << "." << std::endl;
+          k++;
+        }
       os << std::endl;
     }
 }