Option that stores a value when it is present.
More...
#include <booloption.h>
|
| | ~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.
|
| | 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.
|
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.
◆ ~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
-
| pszName | The name, without the leading -. |
| pnTarget | Receives nValue when the option is present. |
| nValue | The 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
-
| name | The option's name. |
| value | The flag. |
| setValue | The value stored when the option appears. |
- Ghidra address:
- 0x100132a0
◆ Parse()
| void BoolOption::Parse |
( |
int * | pnIndex | ) |
|
|
overridevirtual |
Store the value.
The option reads no argument.
- Parameters
-
- 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
-
| curArg | The 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: