utils/print-introspected-doxygen.cc
changeset 2964 4e8cb1577144
parent 2951 2a3db8645225
child 2969 9d05d2a95dfa
     1.1 --- a/utils/print-introspected-doxygen.cc	Fri Apr 11 11:25:44 2008 -0700
     1.2 +++ b/utils/print-introspected-doxygen.cc	Mon Apr 14 16:19:17 2008 -0700
     1.3 @@ -316,5 +316,50 @@
     1.4      }
     1.5  
     1.6  
     1.7 +  std::cout << "/*!" << std::endl
     1.8 +	    << "\\ingroup core" << std::endl
     1.9 +	    << "\\defgroup TraceSourceList The list of all trace sources." << std::endl;
    1.10 +  for (uint32_t i = 0; i < TypeId::GetRegisteredN (); ++i)
    1.11 +    {
    1.12 +      TypeId tid = TypeId::GetRegistered (i);
    1.13 +      if (tid.GetTraceSourceN () == 0 ||
    1.14 +	  tid.MustHideFromDocumentation ())
    1.15 +	{
    1.16 +	  continue;
    1.17 +	}
    1.18 +      std::cout << "<b>" << tid.GetName () << "</b><br>" << std::endl
    1.19 +		<< "<ul>" << std::endl;
    1.20 +      for (uint32_t j = 0; j < tid.GetTraceSourceN (); ++j)
    1.21 +	{
    1.22 +	  std::cout << "<li>" << tid.GetTraceSourceName (j) << ": " << tid.GetTraceSourceHelp (j) << "</li>" << std::endl;
    1.23 +	}
    1.24 +      std::cout << "</ul>" << std::endl;
    1.25 +    }
    1.26 +  std::cout << "*/" << std::endl;
    1.27 +
    1.28 +
    1.29 +  std::cout << "/*!" << std::endl
    1.30 +	    << "\\ingroup core" << std::endl
    1.31 +	    << "\\defgroup AttributeList The list of all attributes." << std::endl;
    1.32 +  for (uint32_t i = 0; i < TypeId::GetRegisteredN (); ++i)
    1.33 +    {
    1.34 +      TypeId tid = TypeId::GetRegistered (i);
    1.35 +      if (tid.GetAttributeN () == 0 ||
    1.36 +	  tid.MustHideFromDocumentation ())
    1.37 +	{
    1.38 +	  continue;
    1.39 +	}
    1.40 +      std::cout << "<b>" << tid.GetName () << "</b><br>" << std::endl
    1.41 +		<< "<ul>" << std::endl;
    1.42 +      for (uint32_t j = 0; j < tid.GetAttributeN (); ++j)
    1.43 +	{
    1.44 +	  std::cout << "<li>" << tid.GetAttributeName (j) << ": " << tid.GetAttributeHelp (j) << "</li>" << std::endl;
    1.45 +	}
    1.46 +      std::cout << "</ul>" << std::endl;
    1.47 +    }
    1.48 +  std::cout << "*/" << std::endl;
    1.49 +
    1.50 +
    1.51 +
    1.52    return 0;
    1.53  }