HEVC Test Model (HM)  HM-16.3
Public Member Functions | Private Attributes | List of all members
df::program_options_lite::OptionSpecific Class Reference

#include <program_options_lite.h>

Collaboration diagram for df::program_options_lite::OptionSpecific:
Collaboration graph
[legend]

Public Member Functions

 OptionSpecific (Options &parent_)
 
template<typename T >
OptionSpecificoperator() (const std::string &name, T &storage, T default_val, const std::string &desc="")
 
OptionSpecificoperator() (const std::string &name, OptionFunc::Func *func, const std::string &desc="")
 

Private Attributes

Optionsparent
 

Detailed Description

Definition at line 198 of file program_options_lite.h.

Constructor & Destructor Documentation

df::program_options_lite::OptionSpecific::OptionSpecific ( Options parent_)
inline

Definition at line 201 of file program_options_lite.h.

Member Function Documentation

template<typename T >
OptionSpecific& df::program_options_lite::OptionSpecific::operator() ( const std::string &  name,
T &  storage,
default_val,
const std::string &  desc = "" 
)
inline

Add option described by name to the parent Options list, with storage for the option's value with default_val as the default value with desc as an optional help description

Definition at line 211 of file program_options_lite.h.

OptionSpecific& df::program_options_lite::OptionSpecific::operator() ( const std::string &  name,
OptionFunc::Func func,
const std::string &  desc = "" 
)
inline

Add option described by name to the parent Options list, with desc as an optional help description instead of storing the value somewhere, a function of type OptionFunc::Func is called. It is upto this function to correctly handle evaluating the option's value.

Definition at line 225 of file program_options_lite.h.

Member Data Documentation

Options& df::program_options_lite::OptionSpecific::parent
private

Definition at line 231 of file program_options_lite.h.


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