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

Documents and handles command line options. More...

#include <options.h>

Inheritance diagram for Linker::Option< ItemOf< T > >:
Linker::OptionDescription< ItemOf< T > > Linker::Option< void > Linker::OptionDescription< void >

Public Member Functions

 Option (std::string name, std::string description, T::value_type default_value=typename T::value_type())
 
std::string type_name () override
 Returns a textual representation of the type, to be displayed to the user.
 
ItemOf< T > operator() ()
 Retrieve the provided value, parsed.
 
void PrintDetails (std::ostream &out, std::string indentation) override
 
- Public Member Functions inherited from Linker::OptionDescription< ItemOf< 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)
 

Public Attributes

T::value_type default_value
 Value of the option if not provided on the command line.
 
- 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< ItemOf< T > >

Documents and handles command line options.

Member Function Documentation

◆ PrintDetails()

template<typename T >
void Linker::Option< ItemOf< T > >::PrintDetails ( std::ostream & out,
std::string indentation )
inlineoverridevirtual

Reimplemented from Linker::OptionDescription< void >.

◆ type_name()

template<typename T >
std::string Linker::Option< ItemOf< 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: