make the output of the list of existing traces more readable
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 29 Aug 2007 14:30:44 +0200
changeset 1388 7c88861a6f8c
parent 1387 895a39560b69
child 1389 93f575998efc
make the output of the list of existing traces more readable
src/core/trace-resolver.cc
--- a/src/core/trace-resolver.cc	Tue Aug 28 16:06:12 2007 +0200
+++ b/src/core/trace-resolver.cc	Wed Aug 29 14:30:44 2007 +0200
@@ -104,13 +104,19 @@
       i->context.PrintAvailable (os, ",");
       os << "]" << 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;
+      os << "argument 0  --  the trace context associated to the connected trace source." << std::endl;
+      uint32_t k = 2;
       for (TraceDoc::Iterator j = i->doc.ArgsBegin (); j != i->doc.ArgsEnd (); j++)
         {
-          os << "argument " << k << "  --  " << j->first << ": " << j->second << "." << std::endl;
+          os << "argument " << k << "  --  " << j->second << "." << std::endl;
           k++;
         }
+      os << "void TraceSinkCallback (const TraceContext &";
+      for (TraceDoc::Iterator k = i->doc.ArgsBegin (); k != i->doc.ArgsEnd (); k++)
+        {
+          os << ", " << k->first;
+        }
+      os << ")" << std::endl;
       os << std::endl;
     }
 }