|
std::vector< const char * > | compilerArgs |
| Command-line arguments to be sent to the compiler. Populated by @process.
|
|
bool | disableInformationLogging = false |
| Disable information logging.
|
|
std::optional< uint32_t > | seed = std::nullopt |
| A seed for the PRNG.
|
|
enum | OptionFlags { Default = 0
, Hide = 1 << 0
, OptionalArgument = 1 << 1
} |
|
using | OptionProcessor = std::function<bool(const char *)> |
|
| AbstractP4cToolOptions (AbstractP4cToolOptions &&)=default |
|
| AbstractP4cToolOptions (const AbstractP4cToolOptions &)=default |
|
| AbstractP4cToolOptions (std::string_view toolName, std::string_view message) |
|
const std::string & | getToolName () const |
| The name of the tool associated with these options.
|
|
AbstractP4cToolOptions & | operator= (const AbstractP4cToolOptions &)=default |
|
bool | validateOptions () const override |
|
| Options (std::string_view message) |
|
void | registerOption (const char *option, const char *argName, OptionProcessor processor, const char *description, OptionFlags flags=OptionFlags::Default) |
|
void | registerUsage (const char *msg) |
|
void | setOutStream (std::ostream *out) |
|
cstring | getBinaryName () |
|
cstring | getBuildDate () |
|
cstring | getCompileCommand () |
|
virtual void | usage () |
|
static std::tuple< int, char ** > | convertArgs (const std::vector< const char * > &args) |
| Converts a vector of command-line arguments into the traditional (argc, argv) format.
|
|
std::vector< const char * > | additionalUsage |
|
const char * | binaryName |
|
cstring | buildDate |
|
bool | collectUnknownOptions = false |
|
cstring | compileCommand |
|
cstring | message |
|
std::vector< cstring > | optionOrder |
|
std::map< cstring, const Option * > | options |
|
std::ostream * | outStream = &std::cerr |
|
std::vector< const char * > | remainingOptions |
|