Base Framework
Public Member Functions | List of all members
ArgumentParser::RealOption Class Reference

Inherits ArgumentParser::Option.

Public Member Functions

 RealOption (const String &name, unsigned int flags=0)
 
 RealOption (const String &name, char shortName, unsigned int flags=0)
 
bool hasDefaultValue () const noexcept
 
double getDefaultValue () const noexcept
 
void setDefaultValue (double defaultValue) noexcept
 
bool isValid (const String &value) const noexcept
 
- Public Member Functions inherited from ArgumentParser::Option
 Option (const String &name, unsigned int flags=0)
 
 Option (const String &name, char shortName, unsigned int flags=0)
 
bool hasShortName () const noexcept
 
char getShortName () const noexcept
 
const StringgetName () const noexcept
 
unsigned int getFlags () const noexcept
 
- Public Member Functions inherited from ReferenceCountedObject
 ReferenceCountedObject () noexcept
 
 ReferenceCountedObject (const ReferenceCountedObject &copy) noexcept
 
 ReferenceCountedObject (ReferenceCountedObject &&move) noexcept
 
ReferenceCountedObjectoperator= (const ReferenceCountedObject &copy) noexcept
 
ReferenceCountedObjectoperator= (ReferenceCountedObject &&move) noexcept
 
MemorySize getNumberOfReferences_INTERNAL () const noexcept
 
virtual bool useGarbageCollector () const noexcept
 
- Public Member Functions inherited from DynamicObject
 DynamicObject () noexcept
 
bool isValidObject () const noexcept
 
virtual ~DynamicObject () noexcept(false)
 
 _COM_AZURE_DEV__BASE__OVERRIDE_ALLOC ()
 

Additional Inherited Members

- Public Types inherited from ArgumentParser::Option
enum  Flag {
  MANDATORY = 1, STRICT = 2, DEPRECATED = 4, EXPLICIT = 8,
  OVERRIDE = 16
}
 

Member Function Documentation

◆ getDefaultValue()

double ArgumentParser::RealOption::getDefaultValue ( ) const
inlinenoexcept

Returns the default value.

◆ hasDefaultValue()

bool ArgumentParser::RealOption::hasDefaultValue ( ) const
inlinenoexcept

Returns true if the option has a default value.

◆ isValid()

bool ArgumentParser::RealOption::isValid ( const String value) const
noexcept

Returns true if the value is valid.

◆ setDefaultValue()

void ArgumentParser::RealOption::setDefaultValue ( double  defaultValue)
inlinenoexcept

Sets the default value.