meshconv::ctr::CmdLine class

CmdLine is a TaggedTuple specialized to MeshConv.

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::reorder_cmd, kw::quiescence, kw::trace, kw::version, kw::license>
MeshConv 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 meshconv::ctr::CmdLine::keywords = tk::cmd_keywords<kw::verbose, kw::charestate, kw::help, kw::helpkw, kw::input, kw::output, kw::screen, kw::reorder_cmd, kw::quiescence, kw::trace, kw::version, kw::license>

MeshConv command-line keywords.

Function documentation

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

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

Pack/Unpack serialize member function.

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

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