Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TObjectItem.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
3 * All rights reserved. *
4 * *
5 * For the licensing terms see $ROOTSYS/LICENSE. *
6 * For the list of contributors see $ROOTSYS/README/CREDITS. *
7 *************************************************************************/
8
9#ifndef ROOT7_Browsable_TObjectItem
10#define ROOT7_Browsable_TObjectItem
11
13
14class TObject;
15
16namespace ROOT {
17namespace Experimental {
18namespace Browsable {
19
20/** \class TObjectItem
21\ingroup rbrowser
22\brief Representation of single item in the file browser for generic TObject object
23\author Sergey Linev <S.Linev@gsi.de>
24\date 2019-10-19
25\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
26*/
27
28class TObjectItem : public RItem {
29 std::string className; ///< class name
30public:
31
32 TObjectItem() = default;
33
34 TObjectItem(const std::string &_name, int _nchilds) : RItem(_name, _nchilds) {}
35
36 // should be here, one needs virtual table for correct streaming of RRootBrowserReply
37 virtual ~TObjectItem() = default;
38
39 void SetClassName(const std::string &_className) { className = _className; }
40};
41
42} // namespace Browsable
43} // namespace Experimental
44} // namespace ROOT
45
46
47#endif
Representation of single item in the browser.
Definition RItem.hxx:24
Representation of single item in the file browser for generic TObject object.
TObjectItem(const std::string &_name, int _nchilds)
void SetClassName(const std::string &_className)
Mother of all ROOT objects.
Definition TObject.h:41
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.