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_TKeyItem
0010 #define ROOT7_Browsable_TKeyItem
0011 
0012 #include <ROOT/Browsable/RItem.hxx>
0013 
0014 class TDirectory;
0015 
0016 namespace ROOT {
0017 namespace Browsable {
0018 
0019 /** \class TKeyItem
0020 \ingroup rbrowser
0021 Representation of single item in the file browser for object from TKey
0022 */
0023 
0024 class TKeyItem : public RItem {
0025    std::string className; ///< class name
0026 
0027 public:
0028 
0029    TKeyItem() = default;
0030 
0031    TKeyItem(const std::string &_name, int _nchilds) : RItem(_name, _nchilds) {}
0032 
0033    // should be here, one needs virtual table for correct streaming of RRootBrowserReply
0034    virtual ~TKeyItem() = default;
0035 
0036    void SetClassName(const std::string &_className) { className = _className; }
0037 };
0038 
0039 } // namespace Browsable
0040 } // namespace ROOT
0041 
0042 
0043 #endif