Belle II Software  release-08-01-10
HtmlClassInspector.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 
11 #include <TString.h>
12 #include <TMemberInspector.h>
13 
14 namespace Belle2 {
20  class HtmlClassInspector : public TMemberInspector {
21  public:
23  static TString getClassInfo(const TClass* obj);
25  static TString getMemberData(const TObject* obj);
26 
28  void Inspect(TClass* cl, const char* pname, const char* mname, const void* add) override;
29 
30  private:
33 
35  TString getTable() const;
36 
38  static TString stripTitle(TString title);
39 
40  TString m_info;
41  };
43 }
Pass to TObject::ShowMembers() to get tabular view of object data.
TString getTable() const
Return finished table.
void Inspect(TClass *cl, const char *pname, const char *mname, const void *add) override
Implementation mostly copied from TDumpMembers.
static TString getMemberData(const TObject *obj)
Return table with member data contents.
static TString stripTitle(TString title)
strip comment things
static TString getClassInfo(const TClass *obj)
Get class name + description from comment after ClassDef().
TString m_info
used to store output.
Abstract base class for different kinds of events.