#ifndef HREPORT_H
#define HREPORT_H
#include "TNamed.h"
#include "TObject.h"
#include "TString.h"
#include "TCanvas.h"
#include "TDatime.h"
#include <fstream>
class HReport : public TNamed {
protected:
TString texfile;
TString texdir;
Bool_t colorlinks;
Bool_t makeTOC;
Bool_t makeListFigures;
Bool_t makeListTables;
Bool_t makeListListings;
Bool_t draft;
Int_t font_size;
TString single_double;
TString orientation;
TString column;
TString viewer;
Bool_t keeppics;
TString include_packages;
TString title;
TString author;
TString date;
TDatime daytime;
ofstream *fout;
Bool_t setopt;
Bool_t includepack;
Bool_t opentex;
Bool_t opendoc;
Bool_t closedoc;
Bool_t useviewer;
Int_t linebreak;
Int_t linect;
Bool_t always_skip_curly;
void initVariables ();
public:
HReport(const Char_t* name="",const Char_t* title="");
~HReport ();
void setOptions(TString option="");
void includePackages(TString packages="");
void openTex(TString tdir="",TString tfile="", TString titlename="Report",TString authorname="");
void openDocument();
void closeDocument();
void addText(TString text);
void figure(TCanvas* canvas=0,TString cap="",TString shcap="",TString lab="",Float_t width=-1,Int_t x1=-1,Int_t y1=-1,Int_t x2=-1,Int_t y2=-1,Int_t rotate=0,TString filename="",Bool_t force=kFALSE,TString format="pdf");
void figureSideCaption(TCanvas* canvas=0,TString cap="",TString shcap="",TString lab="",Float_t widthpic=0.5,Float_t widthtxt=0.45,Float_t space=0.02,Int_t x1=-1,Int_t y1=-1,Int_t x2=-1,Int_t y2=-1,Int_t rotate=0,TString filename="",Bool_t force=kFALSE,TString format="pdf");
void table(Float_t* val=0,Float_t* valerr=0,Int_t sx=0,Int_t sy=0,TString titlex="",TString titley="",TString format="",TString line="",TString cap="",TString shcap="",TString label="");
void openTable (TString format="");
void closeTable(TString cap="",TString shcap="",TString lab="");
void openAppendix();
void closeAppendix();
void includeSource(TString source="",TString cap="",TString shcap="",TString label="",Int_t firstline=-1,Int_t lastline=-1,TString option="");
void makepdf();
void openpdf();
void printOrder();
void printOptions();
void printSettings();
Int_t saveToPdf(TCanvas* canvas=0,TString filename="",Bool_t separate=kFALSE,Bool_t force=kFALSE);
Int_t saveToPng(TCanvas* canvas=0,TString filename="",Bool_t separate=kFALSE,Bool_t force=kFALSE);
TString* parseString(TString options,Int_t& size,TString separator="",Bool_t tolower=kTRUE,Bool_t removespace=kTRUE);
void setLineBreak(Int_t width){linebreak=width;}
void allwaysSkipCurly(){always_skip_curly=kTRUE;}
void writeTex(TString text="",Bool_t skip_curly=kTRUE);
ClassDef(HReport,1)
};
#endif /*!HREPORT_H*/
Last change: Sat May 22 13:08:04 2010
Last generated: 2010-05-22 13:08
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.