Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RVisualizationHolder.hxx
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (C) 1995-2025, 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 ROOT_RVISUALIZATIONHOLDER_HXX
10#define ROOT_RVISUALIZATIONHOLDER_HXX
11
14
15/** \class RVisualizationHolder
16\ingroup rbrowser
17\brief Holder for RNTuple visualization data
18\author Patryk Pilichowski
19\date 2025
20\warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is
21welcome!
22*/
23
25protected:
26 std::shared_ptr<ROOT::RNTupleReader> fNtplReader;
27 std::string fFileName;
28 std::string fTupleName;
29
30public:
31 RVisualizationHolder(std::shared_ptr<ROOT::RNTupleReader> ntplReader, const std::string &fileName,
32 const std::string &tupleName)
34 {
35 }
36
37 const TClass *GetClass() const override { return TClass::GetClass<ROOT::RNTuple>(); }
38
39 /** Returns direct (temporary) object pointer */
40 const void *GetObject() const override { return nullptr; }
41
42 std::shared_ptr<ROOT::RNTupleReader> GetNTupleReader() const { return fNtplReader; }
43 const std::string &GetFileName() const { return fFileName; }
44 const std::string &GetTupleName() const { return fTupleName; }
45};
46
47#endif // ROOT_RVISUALIZATIONHOLDER_HXX
Basic class for object holder of any kind.
Definition RHolder.hxx:33
Holder for RNTuple visualization data.
const std::string & GetFileName() const
const TClass * GetClass() const override
Returns class of contained object.
const void * GetObject() const override
Returns direct (temporary) object pointer.
RVisualizationHolder(std::shared_ptr< ROOT::RNTupleReader > ntplReader, const std::string &fileName, const std::string &tupleName)
const std::string & GetTupleName() const
std::shared_ptr< ROOT::RNTupleReader > GetNTupleReader() const
std::shared_ptr< ROOT::RNTupleReader > fNtplReader
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition TClass.h:84