MakeTutorials.C File Reference

#include "THtml.h"
#include "TDocOutput.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TEnv.h"
#include "TDatime.h"
#include "TStyle.h"
#include "TList.h"
#include <iostream>
#include <fstream>

Go to the source code of this file.

Functions

void scandir (THtml &html, const char *dir, const char *title, TObjLink *toplnk)
void AppendLink (TString &links, int id, const TNamed *n)
void MakeTopLinks (TString &links, const char *name, const char *title, const char *upLink, const char *upTitle, TObjLink *lnk, const char *dir)
void writeHeader (THtml &html, ostream &out, const char *title, const char *relPath="../")
void writeTrailer (THtml &html, ostream &out)
void writeItem (ostream &out, Int_t numb, const char *ref, const char *name, const char *title, Bool_t isnew)
void writeItemDir (THtml &html, ostream &out, TObjLink *lnk)
void writeTutorials (THtml &html)
void GetMacroTitle (const char *fullpath, TString &comment, Bool_t &compile)
Bool_t IsNew (const char *filename)
Bool_t CreateOutput_Dir (const char *dir)
Bool_t CreateOutput_Tutorial (const char *tut)
void MakeTutorials ()


Function Documentation

void AppendLink ( TString links,
int  id,
const TNamed n 
)

Definition at line 25 of file MakeTutorials.C.

References arrow(), TString::Data(), entry, TString::Format(), n, name, and title.

Referenced by MakeTopLinks().

Bool_t CreateOutput_Dir ( const char *  dir  ) 

Definition at line 302 of file MakeTutorials.C.

References kFALSE, and kTRUE.

Referenced by scandir().

Bool_t CreateOutput_Tutorial ( const char *  tut  ) 

Definition at line 316 of file MakeTutorials.C.

References kFALSE, and kTRUE.

Referenced by scandir().

void GetMacroTitle ( const char *  fullpath,
TString comment,
Bool_t compile 
)

Definition at line 245 of file MakeTutorials.C.

References comment, fclose(), fopen, fp, kFALSE, kTRUE, line, and nlines.

Referenced by scandir().

Bool_t IsNew ( const char *  filename  ) 

Definition at line 280 of file MakeTutorials.C.

References TSystem::Exec(), fclose(), fopen, Form(), TDatime::GetDay(), TDatime::GetMonth(), TDatime::GetYear(), gSystem, kFALSE, kTRUE, and line.

Referenced by scandir().

void MakeTopLinks ( TString links,
const char *  name,
const char *  title,
const char *  upLink,
const char *  upTitle,
TObjLink lnk,
const char *  dir 
)

Definition at line 68 of file MakeTutorials.C.

References AppendLink(), TString::Data(), TString::EndsWith(), TString::Format(), TObjLink::GetObject(), TObjLink::Next(), TObjLink::Prev(), and TNamed::SetNameTitle().

Referenced by scandir(), and writeTutorials().

void MakeTutorials (  ) 

Definition at line 450 of file MakeTutorials.C.

References gEnv, gSystem, html(), TSystem::MakeDirectory(), TSystem::OpenDirectory(), TEnv::SetValue(), and writeTutorials().

void scandir ( THtml html,
const char *  dir,
const char *  title,
TObjLink toplnk 
)

Definition at line 348 of file MakeTutorials.C.

References BIT, TStyle::BuildStyles(), comment, CreateOutput_Dir(), CreateOutput_Tutorial(), TCollection::Delete(), TSystem::GetDirEntry(), TROOT::GetListOfBrowsers(), TROOT::GetListOfCanvases(), TROOT::GetListOfFiles(), TROOT::GetListOfFunctions(), TROOT::GetListOfGeometries(), GetMacroTitle(), TNamed::GetName(), TObjLink::GetObject(), TNamed::GetTitle(), gROOT, gStyle, gSystem, h, html(), TROOT::IsBatch(), IsNew(), THtml::kCompiledOutput, THtml::kInterpretedOutput, THtml::kNoOutput, THtml::kSeparateProcessOutput, TSystem::MakeDirectory(), MakeTopLinks(), TSystem::OpenDirectory(), TString::ReplaceAll(), TObject::SetBit(), TROOT::SetStyle(), TObject::TestBit(), writeHeader(), writeItem(), and writeTrailer().

Referenced by writeItemDir().

void writeHeader ( THtml html,
ostream &  out,
const char *  title,
const char *  relPath = "../" 
)

Definition at line 110 of file MakeTutorials.C.

References html(), and TDocOutput::WriteHtmlHeader().

Referenced by scandir(), and writeTutorials().

void writeItem ( ostream &  out,
Int_t  numb,
const char *  ref,
const char *  name,
const char *  title,
Bool_t  isnew 
)

Definition at line 131 of file MakeTutorials.C.

Referenced by scandir().

void writeItemDir ( THtml html,
ostream &  out,
TObjLink lnk 
)

Definition at line 146 of file MakeTutorials.C.

References dir(), TObject::GetName(), TObjLink::GetObject(), TObject::GetTitle(), html(), n, scandir(), and title.

Referenced by writeTutorials().

void writeTrailer ( THtml html,
ostream &  out 
)

Definition at line 122 of file MakeTutorials.C.

References html(), and TDocOutput::WriteHtmlFooter().

Referenced by scandir(), and writeTutorials().

void writeTutorials ( THtml html  ) 

Definition at line 164 of file MakeTutorials.C.

References TList::AddLast(), TList::FirstLink(), html(), MakeTopLinks(), TObjLink::Next(), TNamed::SetNameTitle(), writeHeader(), writeItemDir(), and writeTrailer().

Referenced by MakeTutorials().


Generated on Tue Jul 5 16:09:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1