LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
line::util::TempDir Class Reference

#include <line/util/tempdir.h>

Public Member Functions

 TempDir (const std::string &prefix, bool mountable=false)
 ~TempDir ()
 TempDir (const TempDir &)=delete
TempDiroperator= (const TempDir &)=delete
const std::string & path () const
 The directory itself, with no trailing separator.
std::string file (const std::string &name) const
 A file inside it.
void keep ()
 Leave the directory in place, for a caller that wants to inspect it.

Detailed Description

Definition at line 107 of file tempdir.h.

Constructor & Destructor Documentation

◆ TempDir() [1/2]

line::util::TempDir::TempDir ( const std::string & prefix,
bool mountable = false )
inlineexplicit
Parameters
prefixa short tag naming the caller, as lineTempName('qns') does
mountableroot it where a confined Docker daemon can bind-mount it

Definition at line 113 of file tempdir.h.

References line::util::make_temp_dir().

Referenced by operator=(), and TempDir().

◆ ~TempDir()

line::util::TempDir::~TempDir ( )
inline

Definition at line 116 of file tempdir.h.

◆ TempDir() [2/2]

line::util::TempDir::TempDir ( const TempDir & )
delete

References TempDir().

Member Function Documentation

◆ file()

std::string line::util::TempDir::file ( const std::string & name) const
inline

A file inside it.

Definition at line 127 of file tempdir.h.

Referenced by line::ldes::solver_ldes_text(), and line::qns::solver_qns_run_analyzer().

◆ keep()

void line::util::TempDir::keep ( )
inline

Leave the directory in place, for a caller that wants to inspect it.

Definition at line 130 of file tempdir.h.

Referenced by line::jmt::jmt_get_cdf_resp_t(), line::jmt::jmt_sample_aggr(), line::jmt::jmt_sample_sys_aggr(), line::jmt::solver_jmt_run_analyzer(), and line::qns::solver_qns_run_analyzer().

◆ operator=()

TempDir & line::util::TempDir::operator= ( const TempDir & )
delete

References TempDir().

◆ path()

const std::string & line::util::TempDir::path ( ) const
inline

The documentation for this class was generated from the following file: