Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
tool_util.hpp
Go to the documentation of this file.
1 // Copyright (c) 2015-2022 Clearmatics Technologies Ltd
2 //
3 // SPDX-License-Identifier: LGPL-3.0+
4 
5 #ifndef __ZETH_LIBTOOL_TOOL_UTIL_HPP__
6 #define __ZETH_LIBTOOL_TOOL_UTIL_HPP__
7 
8 #include "libtool/subcommand.hpp"
9 
10 #include <fstream>
11 
13 
14 namespace libtool
15 {
16 
19 std::ifstream open_binary_input_file(const std::string &filename);
20 
22 std::ofstream open_binary_output_file(const std::string &filename);
23 
24 } // namespace libtool
25 
26 #endif // __ZETH_LIBTOOL_TOOL_UTIL_HPP__
analyzer.parse_r1cs.filename
string filename
Definition: parse_r1cs.py:111
libtool
Utilities that are likely to be useful for command line tools.
Definition: command.hpp:10
libtool::open_binary_output_file
std::ofstream open_binary_output_file(const std::string &filename)
Utility function to open a binary file for writing, with appropriate flags.
Definition: tool_util.cpp:19
libtool::open_binary_input_file
std::ifstream open_binary_input_file(const std::string &filename)
Definition: tool_util.cpp:10
subcommand.hpp