83 void NormalizePath(
TString& path)
const;
84 void ExpandSearchPath(
TString& path)
const;
95 virtual bool GetIncludeAs(
TClass* cl,
TString& out_include_as)
const;
96 virtual bool GetFileNameFromInclude(
const char* included,
TString& out_fsname)
const;
97 virtual bool GetDocDir(
const TString& module,
TString& doc_dir)
const;
109 fName(name), fParent(parent), fLevel(parent ? parent->GetLevel() + 1 : 0) {}
119 fParent->GetFullName(fullname, asIncluded);
142 { fFiles.SetOwner(); fDirs.SetOwner(); }
146 void Recurse(
TFileSysDB* db,
const char* path);
177 TFileSysDir(path, 0), fEntries(1009, 5), fIgnorePath(ignorePath), fMaxLevel(maxdirlevel)
207 fFoundDot(kDotUnknown),
209 fInputPath(
"./;src/;include/"),
211 fInputPath(
"./:src/:include/"),
213 fIncludePath(
"include"),
215 fIgnorePath(
"\\b(include|CVS|test|tutorials|doc|lib|python|demo|freetype-|gdk|libAfterImage|etc|config|build|bin)\\b"),
217 fMacroPath(
"macros:."),
218 fOutputDir(
"htmldoc") {}
247 void Convert(
const char *filename,
const char *title,
248 const char *dirname =
"",
const char *relpath=
"../",
250 const char* context =
"");
300 const char*
GetURL(
const char* lib = 0)
const;
322 const char*
ShortType(
const char *name)
const;
356 Error(
"ReplaceSpecialChars",
357 "Removed, call TDocOutput::ReplaceSpecialChars() instead!"); }
const TString & GetCharset() const
TPathDefinition * fPathDef
static Bool_t IsNamespace(const TClass *cl)
Check whether cl is a namespace.
void MakeIndex(const char *filter="*")
Create the index files for the product, modules, all types, etc.
void SetFooter(const char *file)
const TList * GetSubDirs() const
static void * MakeClassThreaded(void *info)
Entry point of worker threads for multi-threaded MakeAll().
void SetSearchEngine(const char *url)
void SetProductName(const char *product)
void SetHeader(const char *file)
virtual bool GetImplFileName(TClass *cl, Bool_t filesys, TString &out_name) const
Return implementation file name.
Int_t fThreadedClassCount
Bool_t HaveDot()
Check whether dot is available in $PATH or in the directory set by SetDotPath()
const TString & GetInputPath() const
void SetEscape(char='\\')
const TFileDefinition & GetFileDefinition() const
Return the TFileDefinition (or derived) object as set by SetFileDefinition(); create and return a TFi...
void SetDocPath(const char *path)
const TString & GetWikiURL() const
virtual void CreateJavascript() const
Write the default ROOT style sheet.
void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
void SetLastUpdateTag(const char *tag)
void SetViewCVS(const char *url)
static const char * GetDirDelimiter()
const TString & GetDotDir() const
TFileDefinition * fFileDef
void SetMacroPath(const char *path)
Int_t GetMaxLevel() const
void SetOwner(THtml *html)
Set the THtml object owning this object; if it's already set to a different THtml object than issue a...
static void LoadAllLibs()
Load all libraries known to ROOT via the rootmap system.
This class implements a mutex interface.
const TString & GetLastUpdateTag() const
const TString & GetProductName() const
virtual ~THtml()
Default destructor.
const TString & GetViewCVS() const
TIter * fThreadedClassIter
void SetDocStyle(const char *style)
const TString & GetIgnore() const
virtual bool GetDeclImplFileName(TClass *cl, bool filesys, bool decl, TString &out_name) const
Combined implementation for GetDeclFileName(), GetImplFileName(): Return declaration / implementation...
const TString & GetDocStyle() const
void SetWikiURL(const char *url)
void MakeAll(Bool_t force=kFALSE, const char *filter="*", int numthreads=1)
Produce documentation for all the classes specified in the filter (by default "*") To process all cla...
void MakeTree(const char *className, Bool_t force=kFALSE)
Make an inheritance tree.
virtual void GetFullName(TString &fullname, Bool_t asIncluded) const
void SetCounterFormat(const char *format)
void SetDeclFileName(TClass *cl, const char *filename)
Explicitly set a decl file name for TClass cl.
const char * GetCounter() const
void SetOutputDir(const char *dir)
Set the directory where the HTML pages shuold be written to.
void GetDerivedClasses(TClass *cl, std::map< TClass *, Int_t > &derived) const
fill derived with all classes inheriting from cl and their inheritance distance to cl ...
const TString & GetClassDocTag() const
const TList * GetListOfClasses() const
void SetClassDocTag(const char *tag)
virtual void CreateStyleSheet() const
Write the default ROOT style sheet.
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
void SetCopyrightTag(const char *tag)
void SetImplFileName(TClass *cl, const char *filename)
Explicitly set a impl file name for TClass cl.
void MakeClass(const char *className, Bool_t force=kFALSE)
Make HTML files for a single class.
THashTable implements a hash table to store TObject's.
#define ClassDef(name, id)
virtual const char * GetEtcDir() const
Get the directory containing THtml's auxiliary files ($ROOTSYS/etc/html)
virtual void CreateAuxiliaryFiles() const
copy CSS, javascript file, etc to the output dir
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
TList * GetLibraryDependencies()
THtml()
Create a THtml object.
void GetFullName(TString &fullname, Bool_t asIncluded) const
void CreateListOfClasses(const char *filter)
Create the list of all known classes.
TFileSysDir * GetParent() const
void SetAuthorTag(const char *tag)
const TString & GetFooter() const
void SetLocalFiles() const
Fill the files available in the file system below fPathInfo.fInputPath.
void ReplaceSpecialChars(std::ostream &, const char *)
const PathInfo_t & GetPathInfo() const
void HelperDeleted(THelperBase *who)
Inform the THtml object that one of its helper objects was deleted.
const TString & GetHeader() const
const TString & GetMacroPath() const
TFileSysEntry(const char *name, TFileSysDir *parent)
TFileSysDB(const char *path, const char *ignorePath, Int_t maxdirlevel)
virtual void GetModuleNameForClass(TString &module, TClass *cl) const
Return the module name for a given class.
void SetBatch(Bool_t batch=kTRUE)
THashTable & GetEntries()
DocEntityInfo_t fDocEntityInfo
TFileSysRoot(const char *name, TFileSysDB *parent)
const TString & GetAuthorTag() const
const TString & GetSearchEngine() const
TFileSysDB * GetLocalFiles() const
void SetEtcDir(const char *dir)
std::map< std::string, TString > fLibURLs
const TModuleDefinition & GetModuleDefinition() const
Return the TModuleDefinition (or derived) object as set by SetModuleDefinition(); create and return a...
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * ShortType(const char *name) const
Get short type name, i.e. with default templates removed.
const char * GetURL(const char *lib=0) const
Get the documentation URL for library lib.
void SetLibURL(const char *lib, const char *url)
TVirtualMutex * GetMakeClassMutex() const
const TString & GetOutputDir(Bool_t createDir=kTRUE) const
Return the output directory as set by SetOutputDir().
The ROOT global object gROOT contains a list of all defined classes.
void Convert(const char *filename, const char *title, const char *dirname="", const char *relpath="../", Int_t includeOutput=kNoOutput, const char *context="")
It converts a single text file to HTML.
void SetSourceDir(const char *dir)
virtual bool GetDeclFileName(TClass *cl, Bool_t filesys, TString &out_name) const
Return declaration file name; return the full path if filesys is true.
void SetFileDefinition(const TFileDefinition &fd)
Set the file defining object to be used; can also be a user derived object (a la traits).
void SetSearchStemURL(const char *url)
void CreateListOfTypes()
Create index of all data types and a page for each typedef-to-class.
const char * GetCounterFormat() const
void SetRootURL(const char *url)
void SetCharset(const char *charset)
void SetXwho(const char *xwho)
void SetDotDir(const char *dir)
virtual bool GetMacroPath(const TString &module, TString &out_dir) const
Determine the path to look for macros (see TDocMacroDirective) for classes from a given module...
void CreateHierarchy()
Create the inheritance hierarchy diagram for all classes.
virtual ~THelperBase()
Helper's destructor.
TVirtualMutex * fMakeClassMutex
const TList * GetFiles() const
TModuleDefinition * fModuleDef
Bool_t CopyFileFromEtcDir(const char *filename) const
Copy a file from $ROOTSYS/etc/html into GetOutputDir()
virtual void GetHtmlFileName(TClass *classPtr, TString &filename) const
Return real HTML filename.
void SetIncludePath(const char *dir)
void SetPathDefinition(const TPathDefinition &pd)
Set the path defining object to be used; can also be a user derived object (a la traits).
const TString & GetHomepage() const
void GetModuleMacroPath(const TString &module, TString &out_path) const
void SetFoundDot(Bool_t found=kTRUE)
Set whether "dot" (a GraphViz utility) is available.
void SetHomepage(const char *url)
Mother of all ROOT objects.
virtual TClass * GetClass(const char *name) const
Return pointer to class with name.
void SetInputDir(const char *dir)
Set the directory containing the source files.
const TString & GetCopyrightTag() const
const TString & GetSearchStemURL() const
TFileSysDir(const char *name, TFileSysDir *parent)
OutputStyle_t fOutputStyle
THashList fShortClassNames
void SetModuleDefinition(const TModuleDefinition &md)
Set the module defining object to be used; can also be a user derived object (a la traits)...
const char * GetName() const
Returns name of object.
virtual ULong_t Hash() const
Return hash value for this object.
const TList * GetListOfModules() const
const TPathDefinition & GetPathDefinition() const
Return the TModuleDefinition (or derived) object as set by SetModuleDefinition(); create and return a...
void AddMacroPath(const char *path)
Add path to the directories to be searched for macro files that are to be executed via the TDocMacroD...
const TString & GetXwho() const
This class stores a (key,value) pair using an external hash.
const TString & GetModuleDocPath() const
TClassDocInfo * GetNextClass()
Return the next class to be generated for MakeClassThreaded.