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*/
25
26class TObjectItem : public RItem {
27 std::string className; ///< class name
28public:
29
30 TObjectItem() = default;
31
32 TObjectItem(const std::string &_name, int _nchilds) : RItem(_name, _nchilds) {}
33
34 // should be here, one needs virtual table for correct streaming of RRootBrowserReply
35 virtual ~TObjectItem() = default;
36
37 void SetClassName(const std::string &_className) { className = _className; }
38 const std::string &GetClassName() const { return className; }
39};
40
41} // namespace Browsable
42} // namespace ROOT
43
44
45#endif
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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:42