|
mCRL2
|
Base class for tools that take an x number of files as input. More...
#include <xinput_tool.h>
Public Member Functions | |
| xinput_tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="", uint16_t min=0, uint16_t max=0) | |
| Constructor. | |
| const std::vector< std::string > & | input_filenames () const |
| Returns a const reference to the input filenames. | |
| std::vector< std::string > & | input_filenames () |
| Returns a reference to the input filenames. | |
Public Member Functions inherited from mcrl2::utilities::tools::tool | |
| 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 ()=default |
| 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. | |
Protected Member Functions | |
| void | check_positional_options (const command_line_parser &parser) override |
| Checks if the number of positional options is OK. | |
| std::string | synopsis () const override |
| Returns the synopsis of the tool. | |
| void | parse_options (const command_line_parser &parser) override |
| Parse non-standard options. | |
| std::string | input_file_message () const |
| Returns a message about the input filename. | |
| std::string | make_tool_description (const std::string &description) const |
| Adds a message about input files to the given description. | |
Protected Member Functions inherited from mcrl2::utilities::tools::tool | |
| 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. | |
Protected Attributes | |
| std::vector< std::string > | m_input_filenames |
| The input file names. | |
| std::size_t | min_input_files |
| std::size_t | max_input_files |
Protected Attributes inherited from mcrl2::utilities::tools::tool | |
| std::string | m_name |
| The name of the tool. | |
| std::string | m_author |
| The name of the developer(s) | |
| std::string | m_what_is |
| One-line "what is" description of the tool. | |
| std::string | m_tool_description |
| The description of the tool. | |
| std::string | m_known_issues |
| Known issues of the tool. | |
| std::string | m_timing_filename |
| The filename to which timings must be written. | |
| execution_timer | m_timer |
| The timer which can be used by the tools. | |
| bool | m_timing_enabled = false |
| Determines whether timing output should be written. | |
Base class for tools that take an x number of files as input.
Definition at line 21 of file xinput_tool.h.
|
inline |
Constructor.
Definition at line 85 of file xinput_tool.h.
|
inlineoverrideprotectedvirtual |
Checks if the number of positional options is OK.
| parser | A command line parser |
Reimplemented from mcrl2::utilities::tools::tool.
Definition at line 33 of file xinput_tool.h.
|
inlineprotected |
Returns a message about the input filename.
Definition at line 66 of file xinput_tool.h.
|
inline |
Returns a reference to the input filenames.
Definition at line 106 of file xinput_tool.h.
|
inline |
Returns a const reference to the input filenames.
Definition at line 100 of file xinput_tool.h.
|
inlineprotected |
Adds a message about input files to the given description.
Definition at line 78 of file xinput_tool.h.
|
inlineoverrideprotectedvirtual |
Parse non-standard options.
| parser | A command line parser |
Reimplemented from mcrl2::utilities::tools::tool.
Definition at line 54 of file xinput_tool.h.
|
inlineoverrideprotectedvirtual |
Returns the synopsis of the tool.
Reimplemented from mcrl2::utilities::tools::tool.
Definition at line 47 of file xinput_tool.h.
|
protected |
The input file names.
Definition at line 25 of file xinput_tool.h.
|
protected |
Definition at line 29 of file xinput_tool.h.
|
protected |
Definition at line 28 of file xinput_tool.h.