GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco::Options Class Reference

#include <options.h>

Public Member Functions

 Options ()=default
 ~Options ()=default
void MergeAndReplace (const Options &other_options)
void SetInt (const std::string &name, int val)
void SetFloat (const std::string &name, float val)
void SetBool (const std::string &name, bool val)
void SetString (const std::string &name, const std::string &val)
template<class VectorT>
void SetVector (const std::string &name, const VectorT &vec)
template<typename DataTypeT>
void SetVector (const std::string &name, const DataTypeT *vec, int num_dims)
int GetInt (const std::string &name) const
int GetInt (const std::string &name, int default_val) const
float GetFloat (const std::string &name) const
float GetFloat (const std::string &name, float default_val) const
bool GetBool (const std::string &name) const
bool GetBool (const std::string &name, bool default_val) const
std::string GetString (const std::string &name) const
std::string GetString (const std::string &name, const std::string &default_val) const
template<class VectorT>
VectorT GetVector (const std::string &name, const VectorT &default_val) const
template<typename DataTypeT>
bool GetVector (const std::string &name, int num_dims, DataTypeT *out_val) const
bool IsOptionSet (const std::string &name) const

Constructor & Destructor Documentation

◆ Options()

draco::Options::Options ( )
default
Here is the caller graph for this function:

◆ ~Options()

draco::Options::~Options ( )
default

Member Function Documentation

◆ GetBool() [1/2]

bool draco::Options::GetBool ( const std::string & name) const
Here is the caller graph for this function:

◆ GetBool() [2/2]

bool draco::Options::GetBool ( const std::string & name,
bool default_val ) const

◆ GetFloat() [1/2]

float draco::Options::GetFloat ( const std::string & name) const
Here is the caller graph for this function:

◆ GetFloat() [2/2]

float draco::Options::GetFloat ( const std::string & name,
float default_val ) const

◆ GetInt() [1/2]

int draco::Options::GetInt ( const std::string & name) const
Here is the caller graph for this function:

◆ GetInt() [2/2]

int draco::Options::GetInt ( const std::string & name,
int default_val ) const

◆ GetString() [1/2]

std::string draco::Options::GetString ( const std::string & name) const
Here is the caller graph for this function:

◆ GetString() [2/2]

std::string draco::Options::GetString ( const std::string & name,
const std::string & default_val ) const

◆ GetVector() [1/2]

template<class VectorT>
VectorT draco::Options::GetVector ( const std::string & name,
const VectorT & default_val ) const
Here is the caller graph for this function:

◆ GetVector() [2/2]

template<typename DataTypeT>
bool draco::Options::GetVector ( const std::string & name,
int num_dims,
DataTypeT * out_val ) const

◆ IsOptionSet()

bool draco::Options::IsOptionSet ( const std::string & name) const
inline
Here is the caller graph for this function:

◆ MergeAndReplace()

void draco::Options::MergeAndReplace ( const Options & other_options)

◆ SetBool()

void draco::Options::SetBool ( const std::string & name,
bool val )

◆ SetFloat()

void draco::Options::SetFloat ( const std::string & name,
float val )

◆ SetInt()

void draco::Options::SetInt ( const std::string & name,
int val )

◆ SetString()

void draco::Options::SetString ( const std::string & name,
const std::string & val )

◆ SetVector() [1/2]

template<typename DataTypeT>
void draco::Options::SetVector ( const std::string & name,
const DataTypeT * vec,
int num_dims )

◆ SetVector() [2/2]

template<class VectorT>
void draco::Options::SetVector ( const std::string & name,
const VectorT & vec )
inline
Here is the caller graph for this function:

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