ATLAS Offline Software
Meta.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9 
10 // Please feel free to contact me (krumnack@iastate.edu) for bug
11 // reports, feature suggestions, praise and complaints.
12 
13 
14 //
15 // includes
16 //
17 
18 #include <SampleHandler/Meta.h>
19 
20 #include <RootCoreUtils/Assert.h>
21 
22 //
23 // method implementations
24 //
25 
26 namespace SH
27 {
28  std::string dbg (const Meta& /*obj*/, unsigned /*verbosity*/)
29  {
30  return "meta-object";
31  }
32 
33 
34 
35  void Meta ::
36  testInvariant () const
37  {
38  }
39 
40 
41 
43  ~Meta ()
44  {
45  RCU_DESTROY_INVARIANT (this);
46  }
47 
48 
49 
51  Meta (const std::string& name)
52  : TNamed (name.c_str(), name.c_str())
53  {
54  RCU_NEW_INVARIANT (this);
55  }
56 }
SH::Meta::Meta
Meta(const std::string &name)
standard constructor
Definition: Meta.cxx:51
SH::Meta::~Meta
virtual ~Meta()
standard destructor
Definition: Meta.cxx:43
SH::dbg
std::string dbg(const Meta &, unsigned)
Definition: Meta.cxx:28
Assert.h
Meta.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
RCU_DESTROY_INVARIANT
#define RCU_DESTROY_INVARIANT(x)
Definition: Assert.h:235
SH
This module provides a lot of global definitions, forward declarations and includes that are used by ...
Definition: PrunDriver.h:15
SH::Meta::testInvariant
void testInvariant() const
test the invariant of this object
Definition: Meta.cxx:36
SH::Meta
A base class for classes that implement arbitrary meta-data.
Definition: Meta.h:43
RCU_NEW_INVARIANT
#define RCU_NEW_INVARIANT(x)
Definition: Assert.h:233