diff --git a/utils/print-introspected-doxygen.cc b/utils/print-introspected-doxygen.cc
index 04dcd0569..633b500fc 100644
--- a/utils/print-introspected-doxygen.cc
+++ b/utils/print-introspected-doxygen.cc
@@ -46,6 +46,21 @@ PrintAttributes (TypeId tid, std::ostream &os)
os << "" << std::endl;
}
+void
+PrintTraceSources (TypeId tid, std::ostream &os)
+{
+ os << "
"<" << tid.GetTraceSourceName (i) << ": "
+ << tid.GetTraceSourceHelp (i)
+ << std::endl;
+ os << "" << std::endl;
+ }
+ os << "
"<" << std::endl;
+ PrintAttributes (tmp, std::cout);
+ }
+ tmp = tmp.GetParent ();
+ }
+ }
+ if (tid.GetTraceSourceN () == 0)
{
- if (tmp.GetAttributeN () != 0)
- {
- hasAttributesInParent = true;
- }
- tmp = tmp.GetParent ();
+ std::cout << "No TraceSources defined for this type." << std::endl;
}
- if (hasAttributesInParent)
+ else
{
- tmp = tid.GetParent ();
- while (tmp.GetParent () != tmp)
- {
- if (tmp.GetAttributeN () != 0)
- {
- std::cout << "Attributes defined in parent class " << tmp.GetName () << ":
" << std::endl;
- PrintAttributes (tmp, std::cout);
- }
- tmp = tmp.GetParent ();
- }
+ std::cout << "TraceSources defined for this type:" << std::endl;
+ PrintTraceSources (tid, std::cout);
}
+ {
+ TypeId tmp = tid.GetParent ();
+ while (tmp.GetParent () != tmp)
+ {
+ if (tmp.GetTraceSourceN () != 0)
+ {
+ std::cout << "TraceSources defined in parent class " << tmp.GetName () << ":
" << std::endl;
+ PrintTraceSources (tmp, std::cout);
+ }
+ tmp = tmp.GetParent ();
+ }
+ }
std::cout << "*/" << std::endl;
}