// Author: DIME
// in ROOT do
// .L ../v20060822/source/ToolSet.so
// .x TestTHtml.C++
/* Begin_Html
class index
End_Html
*/
#include
#include "THtml.h"
#include "../v20060822/source/CVPixel.h"
using namespace std;
// for illustration, we declare and implement a class inside this file
class MyClass {
public:
MyClass() {}
virtual ~MyClass();
void MyMethod() {}
Double_t fMyVariable;
ClassDef(MyClass,1);
};
ClassImp(MyClass)
//_______________________
MyClass::~MyClass() { }
//_________________________________________________________________
// This macro generates wrong URLs in the .html using ROOT 5.12/00a.
void TestTHtml() {
// for illustration create instance of CVPixel.
// This class is provided by ToolSet.so which has to be loaded with
// .L ../v20060822/source/ToolSet.so
CVPixel *p = new CVPixel(0); // instantiate CVPixel.
cout << p->Class()->GetImplFileName() << endl; // prints "CVPixel.cxx"
THtml html;
html.Convert("TestTHtml.C","Title of the Page","./htmldoc","");
html.MakeClass("MyClass");
MyClass bla;
bla.fMyVariable = 0; // do something with it, for illustration only.
}