P4C
The P4 Compiler
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
GTestOptions Class Reference
Inheritance diagram for GTestOptions:
[legend]

Public Member Functions

const char * getIncludePath () const override
 
std::vector< const char * > * process (int argc, char *const argv[])
 
- Public Member Functions inherited from P4::Util::Options
cstring getBinaryName ()
 
cstring getBuildDate ()
 
cstring getCompileCommand ()
 
virtual void usage ()
 

Additional Inherited Members

- Public 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::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)
 
virtual bool validateOptions () const
 
- 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 * GTestOptions::getIncludePath ( ) const
inlineoverridevirtual

Implements P4::Util::Options.

◆ process()

std::vector< const char * > * GTestOptions::process ( int argc,
char *const argv[] )
inlinevirtual

Process options; return list of remaining options.

If subclasses override this method, they should call the superclass implementation.

Returns
'nullptr' if an error is signaled.

Reimplemented from P4::Util::Options.