Fabcoin Core  0.16.2
P2P Digital Currency
Options.h
Go to the documentation of this file.
1 /*
2  This file is part of cpp-ethereum.
3 
4  cpp-ethereum is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  cpp-ethereum is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
16 */
21 #pragma once
24 
25 namespace dev
26 {
27 namespace test
28 {
29 
30 enum class Verbosity
31 {
32  Full,
33  NiceReport,
34  None
35 };
36 
37 class Options
38 {
39 public:
40  bool vmtrace = false;
41  bool filltests = false;
42  bool fillchain = false;
43  bool stats = false;
44  std::string statsOutFile;
45  bool exectimelog = false;
46  std::string rCheckTest;
47  std::string rCurrentTestSuite;
48  bool checkstate = false;
49  bool fulloutput = false;
50  bool createRandomTest = false;
52 
55  bool singleTest = false;
56  std::string singleTestFile;
57  std::string singleTestName;
58  std::string singleTestNet;
60  int trGasIndex;
62  bool performance = false;
63  bool nonetwork = false;
64  bool quadratic = false;
65  bool memory = false;
66  bool inputLimits = false;
67  bool bigData = false;
68  bool wallet = false;
70 
73  static Options const& get(int argc = 0, char** argv = 0);
74 
75 private:
76  Options(int argc = 0, char** argv = 0);
77  Options(Options const&) = delete;
78 };
79 
80 } //namespace test
81 } //namespace dev
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
Definition: Arith256.cpp:15
std::string statsOutFile
Stats output file. "out" for standard output.
Definition: Options.h:44
int trValueIndex
GeneralState value.
Definition: Options.h:61
std::string singleTestNet
Definition: Options.h:58
std::string singleTestFile
Definition: Options.h:56
std::string singleTestName
Definition: Options.h:57
std::string rCurrentTestSuite
Remember test suite before boost overwrite (for random tests)
Definition: Options.h:47
std::string rCheckTest
Test Input (for random tests)
Definition: Options.h:46
int trGasIndex
GeneralState gas.
Definition: Options.h:60
int trDataIndex
GeneralState data.
Definition: Options.h:59
int createRandomTest(std::vector< char * > const &_parameters)