ATLAS Offline Software
Loading...
Searching...
No Matches
SampleMeta.cxx File Reference
#include <SampleHandler/SampleMeta.h>
#include <stdexcept>
#include <RootCoreUtils/Assert.h>
#include <SampleHandler/SampleLocal.h>
Include dependency graph for SampleMeta.cxx:

Go to the source code of this file.

Functions

 ClassImp (SH::SampleMeta) namespace SH

Function Documentation

◆ ClassImp()

ClassImp ( SH::SampleMeta )
Author
Nils Krumnack

Definition at line 21 of file SampleMeta.cxx.

24{
25 void SampleMeta ::
26 testInvariant () const
27 {
28 }
29
30
31
32 SampleMeta ::
33 SampleMeta ()
34 : Sample ("unnamed")
35 {
36 RCU_NEW_INVARIANT (this);
37 }
38
39
40
41 SampleMeta ::
42 SampleMeta (const std::string& name)
43 : Sample (name)
44 {
45 RCU_NEW_INVARIANT (this);
46 }
47
48
49
50 std::size_t SampleMeta ::
51 getNumFiles () const
52 {
53 RCU_READ_INVARIANT (this);
54 // rationale: this is just so that print() will work
55 return 0;
56 }
57
58
59
60 std::string SampleMeta ::
61 getFileName (std::size_t /*index*/) const
62 {
63 RCU_READ_INVARIANT (this);
64 throw std::runtime_error ("fileName() should not be called on SampleMeta");
65 }
66
67
68
69 std::unique_ptr<SampleLocal> SampleMeta ::
70 doMakeLocal () const
71 {
72 RCU_READ_INVARIANT (this);
73 throw std::runtime_error ("makeLocal() should not be called on SampleMeta");
74 }
75
76
77
78 std::vector<std::string> SampleMeta ::
79 doMakeFileList () const
80 {
81 RCU_READ_INVARIANT (this);
82
83 std::vector<std::string> result;
84 return result;
85 }
86}
#define RCU_NEW_INVARIANT(x)
Definition Assert.h:221
#define RCU_READ_INVARIANT(x)
Definition Assert.h:217