unittest::ctr::CmdLine class

CmdLine is a TaggedTuple specialized to UnitTest

The stack is a tagged tuple

Base classes

template<class List>
class tk::TaggedTuple
Tagged tuple, allowing tag-based access.

Public types

using keywords = tk::cmd_keywords<kw::verbose, kw::charestate, kw::help, kw::helpkw, kw::group, kw::screen, kw::quiescence, kw::trace, kw::version, kw::license>
UnitTest command-line keywords.
using ignore = brigand::set<tag::cmdinfo, tag::ctrinfo, tag::helpkw>
Set of tags to ignore when printing this CmdLine.

Constructors, destructors, conversion operators

CmdLine()
Constructor: set defaults.

Pack/Unpack: Serialize CmdLine object for Charm++

void pup(PUP::er& p)
Pack/Unpack serialize member function.
auto logname(const std::string& def, int nrestart) const -> std::string
void operator|(PUP::er& p, CmdLine& c)
Pack/Unpack serialize operator|.

Typedef documentation

using unittest::ctr::CmdLine::keywords = tk::cmd_keywords<kw::verbose, kw::charestate, kw::help, kw::helpkw, kw::group, kw::screen, kw::quiescence, kw::trace, kw::version, kw::license>

UnitTest command-line keywords.

Function documentation

unittest::ctr::CmdLine::CmdLine()

Constructor: set defaults.

Anything not set here is initialized by the compiler using the default constructor for the corresponding type. While there is a ctrinfo parameter, it is unused here, since unittest does not have a control file parser.

void unittest::ctr::CmdLine::pup(PUP::er& p)

Pack/Unpack serialize member function.

Parameters
in/out Charm++'s PUP::er serializer object reference

std::string unittest::ctr::CmdLine::logname(const std::string& def, int nrestart) const

Parameters
def in Default log file name (so we don't mess with user's)
nrestart in Number of times restarted
Returns Log file name

Compute and return log file name

void unittest::ctr::CmdLine::operator|(PUP::er& p, CmdLine& c)

Pack/Unpack serialize operator|.

Parameters
in/out Charm++'s PUP::er serializer object reference
in/out CmdLine object reference