This file demonstrates how THtml can document sources.
THTML had features Doxygen did not yet have, and acquired only at a later time.
To see this demo script in action start up ROOT and run
root [0] .x $(ROOTSYS)/tutorials/htmlex.C+
and check the output in ./htmldoc
.
and of course we can put HTML code into comments, too.
public:
THtmlDemo(): fHtml(nullptr)
{
printf("This class is for demonstration purposes only!\n");
}
~THtmlDemo() override { if (fHtml) delete fHtml; }
void DontDoMuch() {}
void Convert()
{
GetHtml()->SetSourceDir("$(ROOTSYS)/tutorials");
GetHtml()->Convert("htmlex.C", "Example of THtml", "./htmldoc/", "./");
}
void ReferenceDoc()
{
GetHtml()->SetSourceDir("$(ROOTSYS)/tutorials");
GetHtml()->SetOutputDir("./htmldoc");
GetHtml()->MakeIndex("THtmlDemo");
GetHtml()->MakeClass("THtmlDemo");
}
{
if (evenForROOT)
GetHtml()->SetSourceDir(".:$(ROOTSYS)");
else
GetHtml()->SetSourceDir(".");
GetHtml()->SetOutputDir("./htmldoc");
GetHtml()->MakeAll();
}
void RunAll() {
MakeDocForAllClasses();
ReferenceDoc();
Convert();
}
protected:
{
if (!fHtml) fHtml =
new THtml();
return fHtml;
}
private:
Int_t fVeryUselessMember;
};
void htmlex() {
THtmlDemo htmldemo;
htmldemo.RunAll();
}
#define ClassDefOverride(name, id)
Legacy ROOT documentation system.
Mother of all ROOT objects.
- Author
- Axel Naumann
Definition in file htmlex.C.