This file demonstrates how THtml can document sources.
See the Users Guide chapter Automatic HTML Documentation, and THtml's class documentation.
To see this demo script in action start up ROOT and run
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
and check the output in ./htmldoc
.
and of course we can put HTML code into comments, too.
public:
{
printf(
"This class is for demonstration purposes only!\n");
}
~THtmlDemo()
override {
if (fHtml)
delete fHtml; }
void Convert()
{
GetHtml()->SetSourceDir("$(ROOTSYS)/tutorials");
GetHtml()->Convert("htmlex.C", "Example of THtml", "./htmldoc/", "./");
}
{
GetHtml()->SetSourceDir("$(ROOTSYS)/tutorials");
GetHtml()->SetOutputDir("./htmldoc");
GetHtml()->MakeIndex("THtmlDemo");
GetHtml()->MakeClass("THtmlDemo");
}
{
GetHtml()->SetSourceDir(".:$(ROOTSYS)");
else
GetHtml()->SetSourceDir(".");
GetHtml()->SetOutputDir("./htmldoc");
GetHtml()->MakeAll();
}
Convert();
}
protected:
{
if (!fHtml) fHtml =
new THtml();
return fHtml;
}
private:
};
}
#define ClassDefOverride(name, id)
Legacy ROOT documentation system.
Mother of all ROOT objects.
- Author
- Axel Naumann
Definition in file htmlex.C.