|
Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Utilities that are likely to be useful for command line tools. More...
Classes | |
| class | command |
| Represents a top-level command, implementing parsing of global options. More... | |
| class | subcommand |
| Class representing a tool subcommand. More... | |
Functions | |
| template<typename GlobalOptionsT > | |
| int | run_command (command< GlobalOptionsT > &command, GlobalOptionsT &options, const std::map< std::string, subcommand< GlobalOptionsT > * > &subcommands, int argc, char **argv) |
| std::ifstream | open_binary_input_file (const std::string &filename) |
| std::ofstream | open_binary_output_file (const std::string &filename) |
| Utility function to open a binary file for writing, with appropriate flags. More... | |
Utilities that are likely to be useful for command line tools.
| std::ifstream libtool::open_binary_input_file | ( | const std::string & | filename | ) |
Utility function to open a file for reading, with appropriate flags and exception handling enabled.
Definition at line 10 of file tool_util.cpp.

| std::ofstream libtool::open_binary_output_file | ( | const std::string & | filename | ) |
Utility function to open a binary file for writing, with appropriate flags.
Definition at line 19 of file tool_util.cpp.

| int libtool::run_command | ( | command< GlobalOptionsT > & | command, |
| GlobalOptionsT & | options, | ||
| const std::map< std::string, subcommand< GlobalOptionsT > * > & | subcommands, | ||
| int | argc, | ||
| char ** | argv | ||
| ) |
Execute a command object, with some global options object (initialized to default values), supporting the given set of subcommands.

1.8.17