MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
util::ArgResult Struct Reference

An argument which can either be an option or a non-option. More...

#include <arguments.h>

Collaboration diagram for util::ArgResult:
Collaboration graph
[legend]

Public Member Functions

template<typename T >
get_arg (void) const
 Returns argument converted to type T.
 
template<>
std::string get_arg (void) const
 

Public Attributes

std::string arg
 Empty for options without arguments.
 
ArgOption const * opt
 Null for non-options.
 

Detailed Description

An argument which can either be an option or a non-option.

Definition at line 38 of file arguments.h.

Member Function Documentation

◆ get_arg() [1/2]

template<typename T >
T util::ArgResult::get_arg ( void  ) const
inline

Returns argument converted to type T.

Definition at line 186 of file arguments.h.

◆ get_arg() [2/2]

template<>
std::string util::ArgResult::get_arg ( void  ) const
inline

Definition at line 193 of file arguments.h.

Member Data Documentation

◆ arg

std::string util::ArgResult::arg

Empty for options without arguments.

Definition at line 41 of file arguments.h.

◆ opt

ArgOption const* util::ArgResult::opt

Null for non-options.

Definition at line 40 of file arguments.h.


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