fileconv::ctr::CmdLine class

CmdLine : Control< specialized to FileConv >

The stack is a tagged tuple, a hierarchical heterogeneous data structure where all parsed information is stored.

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::input, kw::output, kw::screen, kw::quiescence, kw::trace, kw::version, kw::license>
FileConv 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.

Public functions

auto logname(const std::string& def, int nrestart) const -> std::string

Pack/Unpack: Serialize CmdLine object for Charm++

void pup(PUP::er& p)
Pack/Unpack serialize member function.
void operator|(PUP::er& p, CmdLine& c)
Pack/Unpack serialize operator|.

Typedef documentation

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

FileConv command-line keywords.

Function documentation

fileconv::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 fileconv does not have a control file parser.

std::string fileconv::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 fileconv::ctr::CmdLine::pup(PUP::er& p)

Pack/Unpack serialize member function.

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

void fileconv::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