aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.h
diff options
context:
space:
mode:
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