Logo ROOT  
Reference Guide
REveTypes.hxx
Go to the documentation of this file.
1// @(#)root/eve7:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2018
3
4/*************************************************************************
5 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12
13#ifndef ROOT7_REveTypes
14#define ROOT7_REveTypes
15
16#include "GuiTypes.h" // For Pixel_t only, to be changed.
17
18#include "TString.h"
19
20#include <sstream>
21#include <iostream>
22class TGeoManager;
23namespace ROOT {
24namespace Experimental {
25typedef unsigned int ElementId_t;
26
27class RLogChannel;
28
29//==============================================================================
30// Exceptions, string functions
31//==============================================================================
32
33bool operator==(const TString &t, const std::string &s);
34bool operator==(const std::string &s, const TString &t);
35
36////////////////////////////////////////////////////////////////////////////////
37/// REveException
38/// Exception-type thrown by Eve classes.
39////////////////////////////////////////////////////////////////////////////////
40
41class REveException : public std::exception {
42 std::string fWhat;
43public:
44 REveException() = default;
45 explicit REveException(const std::string &s) : fWhat(s) {}
46 virtual ~REveException() noexcept {}
47 void append(const std::string &s) { fWhat.append(s); }
48
49 const char *what() const noexcept override { return fWhat.c_str(); }
50};
51
52REveException operator+(const REveException &s1, const std::string &s2);
54REveException operator+(const REveException &s1, const char *s2);
56
57/// Log channel for Eve diagnostics.
58RLogChannel &REveLog();
59
60} // namespace Experimental
61} // namespace ROOT
62
63#endif
#define s1(x)
Definition: RSha256.hxx:91
Exception class thrown by Eve classes and macros.
REveException Exception-type thrown by Eve classes.
Definition: REveTypes.hxx:41
REveException(const std::string &s)
Definition: REveTypes.hxx:45
virtual ~REveException() noexcept
Definition: REveTypes.hxx:46
void append(const std::string &s)
Definition: REveTypes.hxx:47
const char * what() const noexcept override
Definition: REveTypes.hxx:49
A log configuration for a channel, e.g.
Definition: RLogger.hxx:101
The manager class for any TGeo geometry.
Definition: TGeoManager.h:45
Basic string class.
Definition: TString.h:136
Double_t x[n]
Definition: legend1.C:17
bool operator==(const TString &t, const std::string &s)
Definition: REveTypes.cxx:27
ELogLevel operator+(ELogLevel severity, int offset)
Definition: RLogger.hxx:45
unsigned int ElementId_t
Definition: REveTypes.hxx:25
RLogChannel & REveLog()
Log channel for Eve diagnostics.
Definition: REveTypes.cxx:47
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
static constexpr double s