3.5.0-rc1
Loading...
Searching...
No Matches
tigl::COptionList Class Reference

#include <COptionList.h>

Inheritance diagram for tigl::COptionList:

Public Member Functions

 COptionList ()
template<class T>
Get (const std::string &name) const
double GetDouble (const std::string &name) const
int GetInt (const std::string &name) const
size_t GetNOptions () const
std::string GetOptionName (size_t idx)
std::string GetOptionType (size_t idx)
std::string GetString (const std::string &name) const
bool HasOption (const std::string &name) const
COptionList Merged (const tigl::COptionList &other) const
template<class T>
void Set (const std::string &name, const T &value)
void SetDouble (const std::string &name, double value)
void SetFromString (const std::string &name, const std::string &value)
void SetInt (const std::string &name, int value)
void SetString (const std::string &name, const std::string &value)

Protected Member Functions

void AddOption (const std::string &name, const any &default_value)
template<class T>
void AddOption (const std::string &name, const T &default_value)

Private Types

typedef std::map< std::string, tigl::anyOptionsMap

Private Attributes

std::vector< OptionsMap::iterator > m_iters
OptionsMap m_options

Member Typedef Documentation

◆ OptionsMap

typedef std::map<std::string, tigl::any> tigl::COptionList::OptionsMap
private

Constructor & Destructor Documentation

◆ COptionList()

tigl::COptionList::COptionList ( )
inline

Member Function Documentation

◆ AddOption() [1/2]

void tigl::COptionList::AddOption ( const std::string & name,
const any & default_value )
inlineprotected

◆ AddOption() [2/2]

template<class T>
void tigl::COptionList::AddOption ( const std::string & name,
const T & default_value )
inlineprotected

◆ Get()

template<class T>
T tigl::COptionList::Get ( const std::string & name) const
inline

◆ GetDouble()

double tigl::COptionList::GetDouble ( const std::string & name) const
inline

◆ GetInt()

int tigl::COptionList::GetInt ( const std::string & name) const
inline

◆ GetNOptions()

size_t tigl::COptionList::GetNOptions ( ) const
inline

◆ GetOptionName()

std::string tigl::COptionList::GetOptionName ( size_t idx)
inline

◆ GetOptionType()

std::string tigl::COptionList::GetOptionType ( size_t idx)
inline

◆ GetString()

std::string tigl::COptionList::GetString ( const std::string & name) const
inline

◆ HasOption()

bool tigl::COptionList::HasOption ( const std::string & name) const
inline

◆ Merged()

COptionList tigl::COptionList::Merged ( const tigl::COptionList & other) const
inline

◆ Set()

template<class T>
void tigl::COptionList::Set ( const std::string & name,
const T & value )
inline

◆ SetDouble()

void tigl::COptionList::SetDouble ( const std::string & name,
double value )
inline

◆ SetFromString()

void tigl::COptionList::SetFromString ( const std::string & name,
const std::string & value )
inline

◆ SetInt()

void tigl::COptionList::SetInt ( const std::string & name,
int value )
inline

◆ SetString()

void tigl::COptionList::SetString ( const std::string & name,
const std::string & value )
inline

Field Documentation

◆ m_iters

std::vector<OptionsMap::iterator> tigl::COptionList::m_iters
private

◆ m_options

OptionsMap tigl::COptionList::m_options
private

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