ATLAS Offline Software
UnitTestDir.h
Go to the documentation of this file.
1 #ifndef ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
2 #define ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
3 
4 // - 2012.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 
9 // Please feel free to contact me (krumnack@iastate.edu) for bug
10 // reports, feature suggestions, praise and complaints.
11 
12 
17 
18 
19 
20 #include <RootCoreUtils/Global.h>
21 
22 #include <string>
23 
24 namespace RCU
25 {
27  {
28  //
29  // public interface
30  //
31 
34  public:
35  void testInvariant () const;
36 
37 
42  public:
43  UnitTestDir (const std::string& package, const std::string& name);
44 
45 
47  private:
50 
51 
54  public:
55  ~UnitTestDir ();
56 
57 
60  public:
61  const std::string& path () const;
62 
63 
66  public:
67  bool cleanup () const;
68  void cleanup (bool val_cleanup);
69 
70 
71 
72  //
73  // private interface
74  //
75 
77  private:
78  std::string m_path;
79  private:
80  bool m_cleanup;
81  };
82 }
83 
84 #endif
RCU::UnitTestDir::UnitTestDir
UnitTestDir(const std::string &package, const std::string &name)
effects: standard constructor guarantee: strong failures: out of memory failures: directory creation ...
Definition: UnitTestDir.cxx:37
RCU::UnitTestDir::operator=
UnitTestDir & operator=(const UnitTestDir &)
RCU::UnitTestDir::testInvariant
void testInvariant() const
effects: test the invariant of this object guarantee: no-fail
Definition: UnitTestDir.cxx:29
RCU::UnitTestDir::m_path
std::string m_path
description: members directly corresponding to accessors
Definition: UnitTestDir.h:78
Global.h
RCU
This module defines a variety of assert style macros.
Definition: Assert.cxx:26
RCU::UnitTestDir::UnitTestDir
UnitTestDir(const UnitTestDir &)
rationale: I'm making these private to avoid copying
RCU::UnitTestDir::~UnitTestDir
~UnitTestDir()
effects: standard destructor guarantee: no-fail
Definition: UnitTestDir.cxx:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
RCU::UnitTestDir::m_cleanup
bool m_cleanup
Definition: UnitTestDir.h:80
RCU::UnitTestDir::cleanup
bool cleanup() const
description: whether we clean up on completion guarantee: no-fail
Definition: UnitTestDir.cxx:79
RCU::UnitTestDir::path
const std::string & path() const
description: the path to the directory guarantee: no-fail
Definition: UnitTestDir.cxx:70
RCU::UnitTestDir
Definition: UnitTestDir.h:27