ROSE 0.11.145.147
Parser.h
1#ifndef ROSE_CommandLine_Parser_H
2#define ROSE_CommandLine_Parser_H
3
4#include <Rose/Color.h>
5
6namespace Rose {
7namespace CommandLine {
8
17ROSE_DLL_API Sawyer::CommandLine::Parser createEmptyParser(const std::string &purpose, const std::string &description);
18
31ROSE_DLL_API Sawyer::CommandLine::Parser createEmptyParserStage(const std::string &purpose, const std::string &description);
32
86
93 unsigned int threads;
95 std::string smtSolver;
107 std::vector<std::string> architectureLibraries;
110 : threads(0), smtSolver("none"), errorIfDisabled(true) {}
111};
112
120ROSE_DLL_API extern GenericSwitchArgs genericSwitchArgs;
121
132ROSE_DLL_API void insertBooleanSwitch(Sawyer::CommandLine::SwitchGroup&, const std::string &switchName,
133 bool &storageLocation, const std::string &documentation);
134
135} // namespace
136} // namespace
137
138#endif
The parser for a program command line.
A collection of related switch declarations.
ROSE_DLL_API Sawyer::CommandLine::Parser createEmptyParser(const std::string &purpose, const std::string &description)
Empty command-line parser.
ROSE_DLL_API void insertBooleanSwitch(Sawyer::CommandLine::SwitchGroup &, const std::string &switchName, bool &storageLocation, const std::string &documentation)
Convenience for for adding Boolean switches.
ROSE_DLL_API Sawyer::CommandLine::Parser createEmptyParserStage(const std::string &purpose, const std::string &description)
Empty command-line parser suitable for use with other parsers.
ROSE_DLL_API GenericSwitchArgs genericSwitchArgs
Global location for parsed generic command-line switches.
ROSE_DLL_API Sawyer::CommandLine::SwitchGroup genericSwitches()
Generic command-line components.
The ROSE library.
Control colored command output.
Definition Color.h:37
Type for storing generic switch arguments.
Definition Parser.h:92
bool errorIfDisabled
Controls behavior of a tool when disabled.
Definition Parser.h:99
Color::Colorization colorization
Controls colorized output.
Definition Parser.h:106
std::string smtSolver
Name of SMT solver interface.
Definition Parser.h:95
unsigned int threads
Number of threads analyses should use.
Definition Parser.h:93
std::vector< std::string > architectureLibraries
List of directories containing architecture definition libraries.
Definition Parser.h:107