Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
20class TGeoManager;
21
22namespace ROOT {
23namespace Experimental {
24
25typedef unsigned int ElementId_t;
26
27
28//==============================================================================
29// Exceptions, string functions
30//==============================================================================
31
32bool operator==(const TString &t, const std::string &s);
33bool operator==(const std::string &s, const TString &t);
34
35////////////////////////////////////////////////////////////////////////////////
36/// REveException
37/// Exception-type thrown by Eve classes.
38////////////////////////////////////////////////////////////////////////////////
39
40class REveException : public std::exception {
41 std::string fWhat;
42public:
43 REveException() = default;
44 explicit REveException(const std::string &s) : fWhat(s) {}
45 virtual ~REveException() noexcept {}
46 void append(const std::string &s) { fWhat.append(s); }
47
48 const char *what() const noexcept override { return fWhat.c_str(); }
49};
50
51REveException operator+(const REveException &s1, const std::string &s2);
52REveException operator+(const REveException &s1, const TString &s2);
53REveException operator+(const REveException &s1, const char *s2);
54REveException operator+(const REveException &s1, ElementId_t x);
55
56} // namespace Experimental
57} // namespace ROOT
58
59#endif
#define s1(x)
Definition RSha256.hxx:91
REveException Exception-type thrown by Eve classes.
Definition REveTypes.hxx:40
REveException(const std::string &s)
Definition REveTypes.hxx:44
virtual ~REveException() noexcept
Definition REveTypes.hxx:45
void append(const std::string &s)
Definition REveTypes.hxx:46
const char * what() const noexcept override
Definition REveTypes.hxx:48
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
ELogLevel operator+(ELogLevel severity, int offset)
Definition RLogger.hxx:45
unsigned int ElementId_t
Definition REveTypes.hxx:25
bool operator==(const RConcurrentHashColl::HashValue &lhs, const RConcurrentHashColl::HashValue &rhs)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...