bug 580: doxygen introspection does not document global values
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 08 Jun 2009 14:14:04 +0200
changeset 4513 544c9d637ff1
parent 4512 d21a2eafb84d
child 4515 d7b076b76ae3
child 5053 87648432f1ca
bug 580: doxygen introspection does not document global values
utils/print-introspected-doxygen.cc
--- a/utils/print-introspected-doxygen.cc	Mon Jun 08 13:50:38 2009 +0200
+++ b/utils/print-introspected-doxygen.cc	Mon Jun 08 14:14:04 2009 +0200
@@ -4,6 +4,8 @@
 #include "ns3/object-vector.h"
 #include "ns3/config.h"
 #include "ns3/log.h"
+#include "ns3/global-value.h"
+#include "ns3/string.h"
 #include "ns3/helper-module.h"
 
 using namespace ns3;
@@ -365,5 +367,19 @@
 
 
 
+  std::cout << "/*!" << std::endl
+	    << "\\ingroup core" << std::endl
+	    << "\\defgroup GlobalValueList The list of all global values." << std::endl
+	    << "<ul>" << std::endl;
+  for (GlobalValue::Iterator i = GlobalValue::Begin (); i != GlobalValue::End (); ++i)
+    {
+      StringValue val;
+      (*i)->GetValue (val);
+      std::cout << "  <li><b>" << (*i)->GetName () << "</b>: " << (*i)->GetHelp () << "(" << val.Get () << ")</li>" << std::endl;
+    }
+  std::cout << "</ul>" << std::endl
+	    << "*/" << std::endl;
+
+
   return 0;
 }