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 Browsable {
18
19/** \class TObjectItem
20\ingroup rbrowser
21\brief Representation of single item in the file browser for generic TObject object
22\author Sergey Linev <S.Linev@gsi.de>
23\date 2019-10-19
24\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
25*/
26
27class TObjectItem : public RItem {
28 std::string className; ///< class name
29public:
30
31 TObjectItem() = default;
32
33 TObjectItem(const std::string &_name, int _nchilds) : RItem(_name, _nchilds) {}
34
35 // should be here, one needs virtual table for correct streaming of RRootBrowserReply
36 virtual ~TObjectItem() = default;
37
38 void SetClassName(const std::string &_className) { className = _className; }
39 const std::string &GetClassName() const { return className; }
40};
41
42} // namespace Browsable
43} // namespace ROOT
44
45
46#endif
Representation of single item in the browser.
Definition RItem.hxx:23
Representation of single item in the file browser for generic TObject object.
std::string className
class name
virtual ~TObjectItem()=default
const std::string & GetClassName() const
void SetClassName(const std::string &_className)
TObjectItem(const std::string &_name, int _nchilds)
Mother of all ROOT objects.
Definition TObject.h:41
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...