wavelength 1.0.0
Loading...
Searching...
No Matches
BoolOption Class Reference

Option that stores a value when it is present. More...

#include <booloption.h>

Inheritance diagram for BoolOption:
Collaboration diagram for BoolOption:

Public Member Functions

 ~BoolOption () override=default
 Destroy the object.
 BoolOption (const char *pszName, int *pnTarget, int nValue)
 Construct an option of a name.
void Parse (int *pnIndex) override
 Store the value.
void PrintUsage () const override
 Print the name of the option.
 BoolOption (const char *name, bool *value, bool setValue)
 Create the option.
virtual void Set (int &curArg)
 Store the value.
virtual void PrintUsage ()
 Print -name to the diagnostic stream.
Public Member Functions inherited from Option
 Option (const char *pszName)
 Construct an option of a name.
virtual ~Option ()
 Release the option.
bool Match (int *pnIndex) const
 Report whether the argument at an index names this option, and step past it when it does.
 Option (const char *name)
 Create an option.
virtual ~Option ()
 Release the option.
bool Matches (int &curArg)
 Consume the current argument when it names this option.

Additional Inherited Members

Protected Attributes inherited from Option
const char * mName

Detailed Description

Option that stores a value when it is present.

Option that stores a fixed value in a flag when it appears.

The RTTI includes the class name and records Option as the base.

The RTTI includes the class name and records Option as the base. The object is 0x10 bytes.

Constructor & Destructor Documentation

◆ ~BoolOption()

BoolOption::~BoolOption ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x003ab550
Ghidra address:
PAL: 0x0041a2b0

◆ BoolOption() [1/2]

BoolOption::BoolOption ( const char * pszName,
int * pnTarget,
int nValue )

Construct an option of a name.

Parameters
pszNameThe name, without the leading -.
pnTargetReceives nValue when the option is present.
nValueThe value.
Ghidra address:
NTSC-U/C: 0x0029d930
Ghidra address:
PAL: 0x002a75f8

◆ BoolOption() [2/2]

BoolOption::BoolOption ( const char * name,
bool * value,
bool setValue )

Create the option.

Parameters
nameThe option's name.
valueThe flag.
setValueThe value stored when the option appears.
Ghidra address:
0x100132a0

Member Function Documentation

◆ Parse()

void BoolOption::Parse ( int * pnIndex)
overridevirtual

Store the value.

The option reads no argument.

Parameters
pnIndexNot used.
Ghidra address:
NTSC-U/C: 0x0029da40
Ghidra address:
PAL: 0x002a7708

Implements Option.

◆ PrintUsage() [1/2]

void BoolOption::PrintUsage ( ) const
inlineoverridevirtual

Print the name of the option.

Ghidra address:
NTSC-U/C: 0x003ab5f8
Ghidra address:
PAL: 0x0041a358

Implements Option.

◆ Set()

virtual void BoolOption::Set ( int & curArg)
virtual

Store the value.

The option takes no argument.

Parameters
curArgThe index of the next argument, unchanged.
Ghidra address:
0x100133c0

Implements Option.

◆ PrintUsage() [2/2]

virtual void BoolOption::PrintUsage ( )
virtual

Print -name to the diagnostic stream.

Ghidra address:
0x100132d0

Implements Option.


The documentation for this class was generated from the following files: