Skip to content
Snippets Groups Projects
Commit f17b22ec authored by Rene Brun's avatar Rene Brun
Browse files

From Axel:

Fix comments inside comments after strings (aka TH1::Rebin) by using a
parse context _stack_. Show base classes' methods if requested. Reformat
method list. Display options (inherited methods? non-public methods?)
are stored in a cookie. We now also have a javascript file. Disable
method sorting on Solaris until they implement a sort-with-predicate.
Again, some chunks of code come from my FNAL/CMS/CD job.

Builds on Solaris CC5 and Win MSVC8.


git-svn-id: http://root.cern.ch/svn/root/trunk@15904 27541ba8-7e3a-0410-8455-c3a389f83636
parent db10df1e
Branches
Tags
No related merge requests found
// @(#)root/html:$Name: $:$Id: THtml.h,v 1.21 2006/07/11 17:34:02 brun Exp $ // @(#)root/html:$Name: $:$Id: THtml.h,v 1.22 2006/07/27 19:57:14 brun Exp $
// Author: Nenad Buncic 18/10/95 // Author: Nenad Buncic 18/10/95
/************************************************************************* /*************************************************************************
...@@ -36,8 +36,8 @@ ...@@ -36,8 +36,8 @@
#ifndef ROOT_TROOT #ifndef ROOT_TROOT
#include "TROOT.h" #include "TROOT.h"
#endif #endif
#ifndef ROOT_TDictionary #ifndef ROOT_TClass
#include "TDictionary.h" #include "TClass.h"
#endif #endif
#ifndef ROOT_TMap #ifndef ROOT_TMap
#include "TMap.h" #include "TMap.h"
...@@ -80,7 +80,7 @@ protected: ...@@ -80,7 +80,7 @@ protected:
kNumSourceInfos kNumSourceInfos
}; };
typedef std::map<std::string /*method name*/, Int_t > MethodNames_t; typedef std::map<std::string /*method name*/, Int_t > MethodCount_t;
TString fXwho; // by default http://xwho.cern.ch/WHO/people? TString fXwho; // by default http://xwho.cern.ch/WHO/people?
TString fSourcePrefix; // prefix to relative source path TString fSourcePrefix; // prefix to relative source path
...@@ -91,9 +91,9 @@ protected: ...@@ -91,9 +91,9 @@ protected:
TString fLineExpanded; // current line with links TString fLineExpanded; // current line with links
TString fLineStripped; // current line without surrounding spaces TString fLineStripped; // current line without surrounding spaces
TClass *fCurrentClass; // current class context of sources being parsed TClass *fCurrentClass; // current class context of sources being parsed
MethodNames_t fMethodNames; // current class's method names MethodCount_t fMethodNames; // current class's method names
EDocContext fDocContext; // current context of parsed sources for documenting EDocContext fDocContext; // current context of parsed sources for documenting
EParseContext fParseContext; // current context of parsed sources std::list<EParseContext> fParseContext; // current context of parsed sources
std::set<UInt_t> fExtraLinesWithAnchor; // lines that need an additional anchor std::set<UInt_t> fExtraLinesWithAnchor; // lines that need an additional anchor
TString fSourceInfo[kNumSourceInfos];// author, last changed, ... TString fSourceInfo[kNumSourceInfos];// author, last changed, ...
TString fCounter; // counter string TString fCounter; // counter string
...@@ -109,6 +109,7 @@ protected: ...@@ -109,6 +109,7 @@ protected:
std::map<TClass*,std::string> fGuessedImplFileNames; // names of additional impl file names std::map<TClass*,std::string> fGuessedImplFileNames; // names of additional impl file names
static std::set<std::string> fgKeywords; // C++ keywords static std::set<std::string> fgKeywords; // C++ keywords
void AddClassMethodsRecursive(TBaseClass* bc, TList methodNames[3]);
void AnchorFromLine(TString& anchor); void AnchorFromLine(TString& anchor);
virtual void BeautifyLine(std::ostream &srcOut); virtual void BeautifyLine(std::ostream &srcOut);
void Class2Html(Bool_t force=kFALSE); void Class2Html(Bool_t force=kFALSE);
...@@ -122,6 +123,7 @@ protected: ...@@ -122,6 +123,7 @@ protected:
void CreateListOfTypes(); void CreateListOfTypes();
void CreateListOfClasses(const char* filter); void CreateListOfClasses(const char* filter);
void CreateSourceOutputStream(std::ofstream& out, const char* extension, TString& filename); void CreateSourceOutputStream(std::ofstream& out, const char* extension, TString& filename);
void CreateJavascript();
void CreateStyleSheet(); void CreateStyleSheet();
void DescendHierarchy(ofstream &out, TClass* basePtr, void DescendHierarchy(ofstream &out, TClass* basePtr,
const char **classNames, Int_t numberOfClasses, const char **classNames, Int_t numberOfClasses,
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment