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 4513544c9d637ff1
parent 4512 d21a2eafb84d
child 4515 d7b076b76ae3
child 5053 87648432f1ca
bug 580: doxygen introspection does not document global values
utils/print-introspected-doxygen.cc
     1.1 --- a/utils/print-introspected-doxygen.cc	Mon Jun 08 13:50:38 2009 +0200
     1.2 +++ b/utils/print-introspected-doxygen.cc	Mon Jun 08 14:14:04 2009 +0200
     1.3 @@ -4,6 +4,8 @@
     1.4  #include "ns3/object-vector.h"
     1.5  #include "ns3/config.h"
     1.6  #include "ns3/log.h"
     1.7 +#include "ns3/global-value.h"
     1.8 +#include "ns3/string.h"
     1.9  #include "ns3/helper-module.h"
    1.10  
    1.11  using namespace ns3;
    1.12 @@ -365,5 +367,19 @@
    1.13  
    1.14  
    1.15  
    1.16 +  std::cout << "/*!" << std::endl
    1.17 +	    << "\\ingroup core" << std::endl
    1.18 +	    << "\\defgroup GlobalValueList The list of all global values." << std::endl
    1.19 +	    << "<ul>" << std::endl;
    1.20 +  for (GlobalValue::Iterator i = GlobalValue::Begin (); i != GlobalValue::End (); ++i)
    1.21 +    {
    1.22 +      StringValue val;
    1.23 +      (*i)->GetValue (val);
    1.24 +      std::cout << "  <li><b>" << (*i)->GetName () << "</b>: " << (*i)->GetHelp () << "(" << val.Get () << ")</li>" << std::endl;
    1.25 +    }
    1.26 +  std::cout << "</ul>" << std::endl
    1.27 +	    << "*/" << std::endl;
    1.28 +
    1.29 +
    1.30    return 0;
    1.31  }