AGX Dynamics  2.37.3.2
agxIO::ArgumentParser::Argument Class Reference

Help class for handling arguments. More...

#include <ArgumentParser.h>

Public Member Functions

 Argument ()
 Constructs an empty argument. More...
 
 Argument (const std::string &argumentName)
 Constructs and argument given its name. More...
 
bool getHandled () const
 Has the argument been handled? More...
 
std::string getName () const
 Gets the name of the argument. More...
 
bool isOption () const
 Is the argument an option (starting with "--")? More...
 
void setHandled (bool handled)
 Set if the argument has been handled. More...
 

Detailed Description

Help class for handling arguments.

Contains the argument name and a bool indicating if the argument has been handled.

Definition at line 46 of file ArgumentParser.h.

Constructor & Destructor Documentation

◆ Argument() [1/2]

agxIO::ArgumentParser::Argument::Argument ( )

Constructs an empty argument.

◆ Argument() [2/2]

agxIO::ArgumentParser::Argument::Argument ( const std::string &  argumentName)

Constructs and argument given its name.

Member Function Documentation

◆ getHandled()

bool agxIO::ArgumentParser::Argument::getHandled ( ) const

Has the argument been handled?

◆ getName()

std::string agxIO::ArgumentParser::Argument::getName ( ) const

Gets the name of the argument.

◆ isOption()

bool agxIO::ArgumentParser::Argument::isOption ( ) const

Is the argument an option (starting with "--")?

◆ setHandled()

void agxIO::ArgumentParser::Argument::setHandled ( bool  handled)

Set if the argument has been handled.


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