aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-08-19 19:12:18 +0800
committerchriseth <c@ethdev.com>2015-08-19 19:12:18 +0800
commit4e7f473c1bfc7c229faa9511a04e01475f3a83ea (patch)
tree677daa4cfb1bac0939bdcf8c4d85ed6aaeebdcbf /solc/CommandLineInterface.h
parent617387436b2f8892990e0d32209e39db75abe56d (diff)
parent895a0a819f89cc1b9a7d2e738ff0cff32380f101 (diff)
downloaddexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar.gz
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar.bz2
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar.lz
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar.xz
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.tar.zst
dexon-solidity-4e7f473c1bfc7c229faa9511a04e01475f3a83ea.zip
Merge solc files from cpp-ethereum.
Diffstat (limited to 'solc/CommandLineInterface.h')
-rw-r--r--solc/CommandLineInterface.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/solc/CommandLineInterface.h b/solc/CommandLineInterface.h
index 46b9b1e2..f79bc0be 100644
--- a/solc/CommandLineInterface.h
+++ b/solc/CommandLineInterface.h
@@ -33,20 +33,13 @@ namespace solidity
//forward declaration
enum class DocumentationType: uint8_t;
-enum class OutputType: uint8_t
-{
- STDOUT,
- FILE,
- BOTH
-};
-
class CommandLineInterface
{
public:
CommandLineInterface() {}
/// Parse command line arguments and return false if we should not continue
- bool parseArguments(int argc, char** argv);
+ bool parseArguments(int _argc, char** _argv);
/// Parse the files and create source code objects
bool processInput();
/// Perform actions on the input depending on provided compiler arguments
@@ -63,6 +56,12 @@ private:
std::string const& _contract);
void handleGasEstimation(std::string const& _contract);
+
+ /// Create a file in the given directory
+ /// @arg _fileName the name of the file
+ /// @arg _data to be written
+ void createFile(std::string const& _fileName, std::string const& _data);
+
/// Compiler arguments variable map
boost::program_options::variables_map m_args;
/// map of input files to source code strings