Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
xRooBrowser.h
Go to the documentation of this file.
1/*
2 * Project: xRooFit
3 * Author:
4 * Will Buttinger, RAL 2022
5 *
6 * Copyright (c) 2022, CERN
7 *
8 * Redistribution and use in source and binary forms,
9 * with or without modification, are permitted according to the terms
10 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
11 */
12
13#include "Config.h"
14
15#ifdef XROOFIT_USE_PRAGMA_ONCE
16#pragma once
17#endif
18#if !defined(XROOFIT_XROOBROWSER_H) || defined(XROOFIT_USE_PRAGMA_ONCE)
19#ifndef XROOFIT_USE_PRAGMA_ONCE
20#define XROOFIT_XROOBROWSER_H
21#endif
22
23#include "TBrowser.h"
24#include "TQObject.h"
25
27
28class xRooNode;
29
30class xRooBrowser : public TBrowser, public TQObject {
31public:
34
35 xRooNode *GetSelected();
36
37 void ls(const char *path = nullptr) const override;
38 void cd(const char *path);
39
40 void HandleMenu(Int_t id);
41
42private:
43 std::shared_ptr<xRooNode> fNode; //!
44 std::shared_ptr<xRooNode> fTopNode; //!
45
46public:
48};
49
51
52#endif // include guard
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
std::shared_ptr< xRooNode > fNode
Definition xRooBrowser.h:43
std::shared_ptr< xRooNode > fTopNode
Definition xRooBrowser.h:44
Using a TBrowser one can browse all ROOT objects.
Definition TBrowser.h:37
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
Definition TQObject.h:48
#define BEGIN_XROOFIT_NAMESPACE
Definition Config.h:24
#define END_XROOFIT_NAMESPACE
Definition Config.h:25