Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:31

0001 /*************************************************************************
0002  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.               *
0003  * All rights reserved.                                                  *
0004  *                                                                       *
0005  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0006  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0007  *************************************************************************/
0008 
0009 #ifndef ROOT7_Browsable_TObjectItem
0010 #define ROOT7_Browsable_TObjectItem
0011 
0012 #include <ROOT/Browsable/RItem.hxx>
0013 
0014 class TObject;
0015 
0016 namespace ROOT {
0017 namespace Browsable {
0018 
0019 /** \class TObjectItem
0020 \ingroup rbrowser
0021 \brief Representation of single item in the file browser for generic TObject object
0022 \author Sergey Linev <S.Linev@gsi.de>
0023 \date 2019-10-19
0024 \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
0025 */
0026 
0027 class TObjectItem : public RItem {
0028    std::string className; ///< class name
0029 public:
0030 
0031    TObjectItem() = default;
0032 
0033    TObjectItem(const std::string &_name, int _nchilds) : RItem(_name, _nchilds) {}
0034 
0035    // should be here, one needs virtual table for correct streaming of RRootBrowserReply
0036    virtual ~TObjectItem() = default;
0037 
0038    void SetClassName(const std::string &_className) { className = _className; }
0039    const std::string &GetClassName() const { return className; }
0040 };
0041 
0042 } // namespace Browsable
0043 } // namespace ROOT
0044 
0045 
0046 #endif