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

Option that reads the argument after it into a string. More...

#include <stringoption.h>

Inheritance diagram for StringOption:
Collaboration diagram for StringOption:

Public Member Functions

 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.
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 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.

Constructor & Destructor Documentation

◆ StringOption() [1/2]

StringOption::StringOption ( const char * pszName,
String * pTarget )

Construct an option of a name.

Parameters
pszNameThe name, without the leading -.
pTargetReceives 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
nameThe option's name.
valueThe string.
Ghidra address:
0x10013300

Member Function Documentation

◆ Parse()

void StringOption::Parse ( int * pnIndex)
overridevirtual

Copy the next argument into the string.

Parameters
pnIndexThe 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
curArgThe 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: