ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
RootCoreUtils
RootCoreUtils
UnitTestDir.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
8
#define ROOT_CORE_UTILS_UNIT_TEST_DIR_HH
9
12
13
14
15
#include <string>
16
17
namespace
RCU
18
{
19
class
UnitTestDir
20
{
21
//
22
// public interface
23
//
24
29
public
:
30
UnitTestDir
(
const
std::string& package,
const
std::string& name);
31
32
34
public
:
35
UnitTestDir
(
const
UnitTestDir
&) =
delete
;
36
UnitTestDir
&
operator =
(
const
UnitTestDir
&) =
delete
;
37
38
41
public
:
42
~UnitTestDir
();
43
44
47
public
:
48
const
std::string&
path
()
const
;
49
50
53
public
:
54
bool
cleanup
()
const
;
55
void
cleanup
(
bool
val_cleanup);
56
57
58
59
//
60
// private interface
61
//
62
64
private
:
65
std::string
m_path
;
66
private
:
67
bool
m_cleanup
;
68
};
69
}
70
71
#endif
RCU::UnitTestDir::UnitTestDir
UnitTestDir(const UnitTestDir &)=delete
rationale: deleted to avoid copying
RCU::UnitTestDir::path
const std::string & path() const
description: the path to the directory guarantee: no-fail
Definition
UnitTestDir.cxx:62
RCU::UnitTestDir::operator=
UnitTestDir & operator=(const UnitTestDir &)=delete
RCU::UnitTestDir::m_cleanup
bool m_cleanup
Definition
UnitTestDir.h:67
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:27
RCU::UnitTestDir::~UnitTestDir
~UnitTestDir()
effects: standard destructor guarantee: no-fail
Definition
UnitTestDir.cxx:46
RCU::UnitTestDir::m_path
std::string m_path
description: members directly corresponding to accessors
Definition
UnitTestDir.h:65
RCU::UnitTestDir::cleanup
bool cleanup() const
description: whether we clean up on completion guarantee: no-fail
Definition
UnitTestDir.cxx:70
RCU
This module defines a variety of assert style macros.
Definition
Assert.cxx:23
Generated on
for ATLAS Offline Software by
1.17.0