Option that reads the argument after it into a string.
More...
#include <stringoption.h>
|
| | StringOption (const char *pszName, String *pTarget) |
| | Construct an option of a name.
|
| void | Parse (int *pnIndex) override |
| | Copy the next argument into the string.
|
| void | PrintUsage () const override |
| | Print the name of the option and its argument.
|
| | StringOption (const char *name, String *value) |
| | Create the option.
|
| virtual void | Set (int &curArg) |
| | Store the next argument and consume it.
|
| virtual void | PrintUsage () |
| | Print -name <string> 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 reads the argument after it into a string.
Option that stores the argument after it in a string.
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 0xc bytes.
◆ StringOption() [1/2]
| StringOption::StringOption |
( |
const char * | pszName, |
|
|
String * | pTarget ) |
Construct an option of a name.
- Parameters
-
| pszName | The name, without the leading -. |
| pTarget | Receives the argument. |
- Ghidra address:
- NTSC-U/C: 0x0029d998
- Ghidra address:
- PAL: 0x002a7660
◆ StringOption() [2/2]
| StringOption::StringOption |
( |
const char * | name, |
|
|
String * | value ) |
Create the option.
- Parameters
-
| name | The option's name. |
| value | The string. |
- Ghidra address:
- 0x10013300
◆ Parse()
| void StringOption::Parse |
( |
int * | pnIndex | ) |
|
|
overridevirtual |
Copy the next argument into the string.
- Parameters
-
| pnIndex | The index of the argument, advanced past it. |
- Ghidra address:
- NTSC-U/C: 0x0029da60
- Ghidra address:
- PAL: 0x002a7728
Implements Option.
◆ PrintUsage() [1/2]
| void StringOption::PrintUsage |
( |
| ) |
const |
|
inlineoverridevirtual |
Print the name of the option and its argument.
- Ghidra address:
- NTSC-U/C: 0x003ab6d8
- Ghidra address:
- PAL: 0x0041a438
Implements Option.
◆ Set()
| virtual void StringOption::Set |
( |
int & | curArg | ) |
|
|
virtual |
Store the next argument and consume it.
- Parameters
-
| curArg | The index of the next argument, advanced past the value. |
- Ghidra address:
- 0x100133d0
Implements Option.
◆ PrintUsage() [2/2]
| virtual void StringOption::PrintUsage |
( |
| ) |
|
|
virtual |
Print -name <string> to the diagnostic stream.
- Ghidra address:
- 0x10013320
Implements Option.
The documentation for this class was generated from the following files: