P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4Tools::SmithOptions Class Reference
Inheritance diagram for P4::P4Tools::SmithOptions:
[legend]

Public Member Functions

const char * getIncludePath () const override
 
void processArgs (const std::vector< const char * > &args)
 
- Public Member Functions inherited from P4::P4Tools::AbstractP4cToolOptions
std::optional< ICompileContext * > process (const std::vector< const char * > &args)
 
std::vector< const char * > * process (int argc, char *const argv[]) override
 Hook for customizing options processing.
 

Static Public Member Functions

static SmithOptionsget ()
 

Additional Inherited Members

- Public Attributes inherited from P4::P4Tools::AbstractP4cToolOptions
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.
 
- Protected Types inherited from P4::Util::Options
enum  OptionFlags { Default = 0 , Hide = 1 << 0 , OptionalArgument = 1 << 1 }
 
using OptionProcessor = std::function<bool(const char *)>
 
- Protected Member Functions inherited from P4::P4Tools::AbstractP4cToolOptions
 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.
 
AbstractP4cToolOptionsoperator= (const AbstractP4cToolOptions &)=default
 
bool validateOptions () const override
 
- Protected Member Functions inherited from P4::Util::Options
 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 Protected Member Functions inherited from P4::P4Tools::AbstractP4cToolOptions
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.
 
- Protected Attributes inherited from P4::Util::Options
std::vector< const char * > additionalUsage
 
const char * binaryName
 
cstring buildDate
 
bool collectUnknownOptions = false
 
cstring compileCommand
 
cstring message
 
std::vector< cstringoptionOrder
 
std::map< cstring, const Option * > options
 
std::ostream * outStream = &std::cerr
 
std::vector< const char * > remainingOptions
 

Member Function Documentation

◆ getIncludePath()

const char * P4::P4Tools::SmithOptions::getIncludePath ( ) const
overridevirtual

Implements P4::Util::Options.