|
Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Class representing a tool subcommand. More...
#include <subcommand.hpp>

Public Member Functions | |
| subcommand (const std::string &subcommand_name, const std::string &description) | |
| virtual | ~subcommand () |
| const std::string & | description () const |
| int | execute (const char *argv0, const std::vector< std::string > command_args, const GlobalOptionsT &global) |
| Common code to parse options and invoke the virtual execute entrypoint. More... | |
Protected Member Functions | |
| void | usage (const char *argv0, const boost::program_options::options_description &options) |
| virtual void | initialize_suboptions (boost::program_options::options_description &options, boost::program_options::options_description &all_options, boost::program_options::positional_options_description &pos)=0 |
| Instantiation can now set up the boost program_options structures. More... | |
| virtual void | parse_suboptions (const boost::program_options::variables_map &vm)=0 |
| virtual void | subcommand_usage (const char *argv0)=0 |
| Any command-specific output for usage. More... | |
| virtual int | execute_subcommand (const GlobalOptionsT &global)=0 |
| Execute the command using global options defined by the caller. More... | |
Protected Attributes | |
| std::string | subcommand_name |
| std::string | subcommand_description |
Class representing a tool subcommand.
Definition at line 18 of file subcommand.hpp.
| libtool::subcommand< GlobalOptionsT >::subcommand | ( | const std::string & | subcommand_name, |
| const std::string & | description | ||
| ) |
|
virtual |
| const std::string& libtool::subcommand< GlobalOptionsT >::description | ( | ) | const |
| int libtool::subcommand< GlobalOptionsT >::execute | ( | const char * | argv0, |
| const std::vector< std::string > | command_args, | ||
| const GlobalOptionsT & | global | ||
| ) |
Common code to parse options and invoke the virtual execute entrypoint.
|
protectedpure virtual |
Execute the command using global options defined by the caller.
|
protectedpure virtual |
Instantiation can now set up the boost program_options structures.
Implemented in zethtool::commands::prove_cmd, zethtool::commands::verify_cmd, zethtool::commands::joinsplit_circuit_cmd, zethtool::commands::split_keypair_cmd, zethtool::commands::dump_proof_cmd, zethtool::generic_subcommand< CommandT >, zethtool::generic_subcommand< verify_cmd >, zethtool::generic_subcommand< dump_proof_cmd >, zethtool::generic_subcommand< prove_cmd >, zethtool::generic_subcommand< joinsplit_circuit_cmd >, and zethtool::generic_subcommand< split_keypair_cmd >.
|
protectedpure virtual |
Instantiation can record any command-specific information from the parsed variables_map.
Implemented in zethtool::generic_subcommand< CommandT >, zethtool::generic_subcommand< verify_cmd >, zethtool::generic_subcommand< dump_proof_cmd >, zethtool::generic_subcommand< prove_cmd >, zethtool::generic_subcommand< joinsplit_circuit_cmd >, zethtool::generic_subcommand< split_keypair_cmd >, zethtool::commands::prove_cmd, zethtool::commands::verify_cmd, zethtool::commands::split_keypair_cmd, zethtool::commands::joinsplit_circuit_cmd, and zethtool::commands::dump_proof_cmd.
|
protectedpure virtual |
Any command-specific output for usage.
Implemented in zethtool::commands::prove_cmd, zethtool::commands::verify_cmd, zethtool::commands::split_keypair_cmd, zethtool::commands::joinsplit_circuit_cmd, and zethtool::commands::dump_proof_cmd.
|
protected |
|
protected |
Definition at line 55 of file subcommand.hpp.
|
protected |
Definition at line 54 of file subcommand.hpp.
1.8.17