RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Linker::Option< std::optional< T > > Class Template Reference

Documents and handles command line options. More...

#include <options.h>

Inheritance diagram for Linker::Option< std::optional< T > >:
Linker::OptionDescription< std::optional< T > > Linker::Option< void > Linker::OptionDescription< void >

Public Member Functions

 Option (std::string name, std::string description)
 
std::string type_name () override
 Returns a textual representation of the type, to be displayed to the user.
 
std::optional< T > operator() ()
 Retrieve the provided value, parsed.
 
- Public Member Functions inherited from Linker::OptionDescription< std::optional< T > >
 OptionDescription (std::string name, std::string description)
 
std::string type_name () override
 
- Public Member Functions inherited from Linker::Option< void >
 Option (std::string name, std::string description)
 
- Public Member Functions inherited from Linker::OptionDescription< void >
 OptionDescription (std::string name, std::string description)
 

Additional Inherited Members

- Public Attributes inherited from Linker::Option< void >
std::map< std::string, std::string > * options
 Reference to the collection of command line options, to be accessed by the Option instance.
 
- Public Attributes inherited from Linker::OptionDescription< void >
std::string name
 The name of a command line option, as provided on the command line.
 
std::string description
 Description printed when -h is issued.
 

Detailed Description

template<typename T>
class Linker::Option< std::optional< T > >

Documents and handles command line options.

Member Function Documentation

◆ type_name()

template<typename T >
std::string Linker::Option< std::optional< T > >::type_name ( )
inlineoverridevirtual

Returns a textual representation of the type, to be displayed to the user.

This function only returns a meaningful value if the option has a type.

Reimplemented from Linker::OptionDescription< void >.


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