File indexing completed on 2025-01-18 10:10:30
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ROOT7_Browsable_RGroup
0010 #define ROOT7_Browsable_RGroup
0011
0012 #include <ROOT/Browsable/RElement.hxx>
0013
0014 namespace ROOT {
0015 namespace Browsable {
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 class RGroup : public RElement {
0026
0027 std::string fName;
0028 std::string fTitle;
0029 std::vector<std::shared_ptr<RElement>> fChilds;
0030
0031 public:
0032
0033 RGroup(const std::string &name, const std::string &title = "") : RElement(), fName(name), fTitle(title) {}
0034
0035 virtual ~RGroup() = default;
0036
0037
0038 std::string GetName() const override { return fName; }
0039
0040
0041 std::string GetTitle() const override { return fTitle; }
0042
0043
0044 std::unique_ptr<RLevelIter> GetChildsIter() override;
0045
0046 void Add(std::shared_ptr<RElement> elem) { fChilds.emplace_back(elem); }
0047
0048 auto &GetChilds() const { return fChilds; }
0049 };
0050
0051 }
0052 }
0053
0054 #endif