Base class for tools that optionally takes one file as input, and writes the results to two output files.
More...
#include <input_output_output_tool.h>
|
| input_output_output_tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="") |
| Constructor.
|
|
const std::string & | input_filename () const |
| Returns a const reference to the input filename.
|
|
std::string & | input_filename () |
|
const std::string & | output_filename1 () const |
| Returns a const reference to the first output filename.
|
|
std::string & | output_filename1 () |
|
const std::string & | output_filename2 () const |
| Returns a const reference to the second output filename.
|
|
std::string & | output_filename2 () |
|
| tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="") |
| Constructor.
|
|
virtual | ~tool () |
| Destructor.
|
|
virtual bool | run ()=0 |
| Run the tool. The options must be set manually.
|
|
const std::string & | timing_filename () const |
| Return the filename in which timings must be saved.
|
|
execution_timer & | timer () |
| Return reference to the timer that can be used.
|
|
int | execute (int argc, char *argv[]) |
| Run the tool with the given command line options.
|
|
|
void | check_positional_options (const command_line_parser &parser) |
| Checks if the number of positional options is OK.
|
|
std::string | synopsis () const |
| Returns the synopsis of the tool.
|
|
void | parse_options (const command_line_parser &parser) |
| Parse non-standard options.
|
|
std::string | output_file_message () const |
| Returns a message about the output filename.
|
|
std::string | make_tool_description (const std::string &description) const |
| Adds a message about input and output files to the given description.
|
|
virtual void | add_options (interface_description &desc) |
| Add options to an interface description.
|
|
virtual void | parse_options (const command_line_parser &parser) |
| Parse non-standard options.
|
|
virtual bool | pre_run (int &, char **) |
| Executed only if run would be executed and invoked before run.
|
|
virtual void | check_standard_options (const command_line_parser &parser) |
| Parse standard options.
|
|
virtual void | check_positional_options (const command_line_parser &parser) |
| Checks if the number of positional options is OK. By default this function handles standard options: -v, -d and -q Furthermore, it checks that all options occur at most once.
|
|
virtual std::string | synopsis () const |
| Returns the synopsis of the tool.
|
|
Base class for tools that optionally takes one file as input, and writes the results to two output files.
Definition at line 26 of file input_output_output_tool.h.
◆ input_output_output_tool()
mcrl2::utilities::tools::input_output_output_tool::input_output_output_tool |
( |
const std::string & |
name, |
|
|
const std::string & |
author, |
|
|
const std::string & |
what_is, |
|
|
const std::string & |
tool_description, |
|
|
std::string |
known_issues = "" |
|
) |
| |
|
inline |
◆ check_positional_options()
void mcrl2::utilities::tools::input_output_output_tool::check_positional_options |
( |
const command_line_parser & |
parser | ) |
|
|
inlineprotectedvirtual |
◆ input_filename() [1/2]
std::string & mcrl2::utilities::tools::input_output_output_tool::input_filename |
( |
| ) |
|
|
inline |
◆ input_filename() [2/2]
const std::string & mcrl2::utilities::tools::input_output_output_tool::input_filename |
( |
| ) |
const |
|
inline |
◆ make_tool_description()
std::string mcrl2::utilities::tools::input_output_output_tool::make_tool_description |
( |
const std::string & |
description | ) |
const |
|
inlineprotected |
◆ output_file_message()
std::string mcrl2::utilities::tools::input_output_output_tool::output_file_message |
( |
| ) |
const |
|
inlineprotected |
◆ output_filename1() [1/2]
std::string & mcrl2::utilities::tools::input_output_output_tool::output_filename1 |
( |
| ) |
|
|
inline |
◆ output_filename1() [2/2]
const std::string & mcrl2::utilities::tools::input_output_output_tool::output_filename1 |
( |
| ) |
const |
|
inline |
◆ output_filename2() [1/2]
std::string & mcrl2::utilities::tools::input_output_output_tool::output_filename2 |
( |
| ) |
|
|
inline |
◆ output_filename2() [2/2]
const std::string & mcrl2::utilities::tools::input_output_output_tool::output_filename2 |
( |
| ) |
const |
|
inline |
◆ parse_options()
void mcrl2::utilities::tools::input_output_output_tool::parse_options |
( |
const command_line_parser & |
parser | ) |
|
|
inlineprotectedvirtual |
◆ synopsis()
std::string mcrl2::utilities::tools::input_output_output_tool::synopsis |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ m_input_filename
std::string mcrl2::utilities::tools::input_output_output_tool::m_input_filename |
|
protected |
◆ m_output_filename1
std::string mcrl2::utilities::tools::input_output_output_tool::m_output_filename1 |
|
protected |
◆ m_output_filename2
std::string mcrl2::utilities::tools::input_output_output_tool::m_output_filename2 |
|
protected |
The documentation for this class was generated from the following file: