ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/Utils/interface/MyHtml.h
Revision: 1.1
Committed: Wed Aug 12 08:17:09 2009 UTC (15 years, 8 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, HEAD
Branch point for: Mit_025c_branch
Log Message:
Have MyThml here

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: SimpleTable.h,v 1.1 2009/01/23 07:34:34 loizides Exp $
3     //
4     // MyHtml
5     //
6     // Simple extension to THtml class. To be able to bugfix THtml a copy of all files from ROOT
7     // are added (which obviously are not totally compliant with our coding conventions:
8     // TClassDocOutput.h
9     // TDocDirective.h
10     // TDocInfo.h
11     // TDocOutput.h
12     // TDocParser.h
13     // THtml.h
14     //
15     //
16     // Authors: C.Loizides
17     //--------------------------------------------------------------------------------------------------
18    
19     #ifndef MITANA_UTILS_MYHTML_H
20     #define MITANA_UTILS_MYHTML_H
21    
22     #include "MitAna/Utils/interface/THtml.h"
23     #include "MitAna/Utils/interface/TDocInfo.h"
24    
25     class MyHtml : public THtml
26     {
27     public:
28     class MyModDef: public TModuleDefinition {
29     public:
30     bool GetModule(TClass* cl, TString& out_modulename) const {
31     TString cn(cl->GetName());
32     if (!cn.BeginsWith("mithep") && !cn.BeginsWith("TAM")) {
33     return 0;
34     //return TModuleDefinition::GetModule(cl, out_modulename);
35     }
36     TString tmp(cl->GetDeclFileName());
37     Ssiz_t fst = tmp.Index("/Mit")+1;
38     Ssiz_t snd = tmp.Index("/",tmp.Index("/",fst)+1);
39     out_modulename = tmp(fst,snd-fst);
40     return 1;
41     }
42    
43     ClassDef(MyModDef, 0) // MyModDef class for BAMBU module definition
44     };
45    
46     MyHtml()
47     {
48     MyModDef m;
49     SetModuleDefinition(m);
50     }
51     void SetIncludePath(const char *p) { fPathInfo.fIncludePath=p; }
52     void GetModuleNameForClass(TString& module, TClass* cl) const
53     {
54     module = "NOTUSED";
55     TString cn(cl->GetName());
56     if (!cn.BeginsWith("mithep") && !cn.BeginsWith("TAM")) {
57     return;
58     }
59     TString tmp(cl->GetDeclFileName());
60     Ssiz_t fst = tmp.Index("/Mit")+1;
61     Ssiz_t snd = tmp.Index("/",tmp.Index("/",fst)+1);
62     module = tmp(fst,snd-fst);
63     return;
64     }
65    
66     void RunAll(Bool_t force, const char *filter)
67     {
68     CreateListOfClasses(filter);
69     TModuleDocInfo* module =
70     dynamic_cast<TModuleDocInfo*>(GetListOfModules()->FindObject("MitCommon"));
71     if (module)
72     module->SetSelected();
73     THtml::MakeAll(force,filter);
74     }
75    
76     ClassDef(MyHtml, 0) // MyHtml class for BAMBU docu
77     };
78     #endif