GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GSnapshot.h
Go to the documentation of this file.
1#ifndef GSNAPSHOT_H
2#define GSNAPSHOT_H
3
4#include <string>
5
6class TCanvas;
7
8class GSnapshot {
9public:
10 static GSnapshot& Get();
11
12 explicit GSnapshot(const char* snapshot_dir = nullptr);
13 GSnapshot(const GSnapshot&) = default;
14 GSnapshot(GSnapshot&&) noexcept = default;
15 GSnapshot& operator=(const GSnapshot&) = default;
16 GSnapshot& operator=(GSnapshot&&) noexcept = default;
17 ~GSnapshot() = default;
18
19 void Snapshot(TCanvas* can = nullptr);
20
21private:
22 std::string fSnapshotDir;
24};
25
26extern GSnapshot gSnapshot;
27
28#endif
GSnapshot gSnapshot
static GSnapshot & Get()
Definition GSnapshot.cxx:10
GSnapshot(const GSnapshot &)=default
bool fCanWriteHere
Definition GSnapshot.h:23
GSnapshot(const char *snapshot_dir=nullptr)
Definition GSnapshot.cxx:16
std::string fSnapshotDir
Definition GSnapshot.h:22
GSnapshot(GSnapshot &&) noexcept=default
void Snapshot(TCanvas *can=nullptr)
Definition GSnapshot.cxx:43