#include <options.h>
Public Member Functions | |
| bool | getBool (const std::string &key, bool default_value=false) |
| double | getDouble (const std::string &key, double default_value=0) |
| const std::string & | getString (const std::string &key, const std::string &default_value=std::string()) |
| bool | hasKey (const std::string &key) const |
| Options (int nrhs, const mxArray *prhs[]) | |
| void | warnUnused () |
| virtual | ~Options () |
Static Public Member Functions | |
| static double | getDoubleScalar (const mxArray *value) |
| static bool | getLogicalScalar (const mxArray *value) |
| static std::string | getString (const mxArray *value) |
| static bool | isDoubleScalar (const mxArray *value) |
| static bool | isLogicalScalar (const mxArray *value) |
| static bool | isString (const mxArray *value) |
Private Attributes | |
| std::map< std::string, double > | doubles_ |
| std::map< std::string, bool > | logicals_ |
| std::map< std::string, std::string > | strings_ |
| std::map< std::string, bool > | used_ |
| rosmatlab::Options::Options | ( | int | nrhs, |
| const mxArray * | prhs[] | ||
| ) |
Definition at line 73 of file options.cpp.
| rosmatlab::Options::~Options | ( | ) | [virtual] |
Definition at line 86 of file options.cpp.
| bool rosmatlab::Options::getBool | ( | const std::string & | key, |
| bool | default_value = false |
||
| ) |
Definition at line 109 of file options.cpp.
| double rosmatlab::Options::getDouble | ( | const std::string & | key, |
| double | default_value = 0 |
||
| ) |
Definition at line 102 of file options.cpp.
| double rosmatlab::Options::getDoubleScalar | ( | const mxArray * | value | ) | [static] |
Definition at line 55 of file options.cpp.
| bool rosmatlab::Options::getLogicalScalar | ( | const mxArray * | value | ) | [static] |
Definition at line 66 of file options.cpp.
| std::string rosmatlab::Options::getString | ( | const mxArray * | value | ) | [static] |
Definition at line 41 of file options.cpp.
| const std::string & rosmatlab::Options::getString | ( | const std::string & | key, |
| const std::string & | default_value = std::string() |
||
| ) |
Definition at line 95 of file options.cpp.
| bool rosmatlab::Options::hasKey | ( | const std::string & | key | ) | const |
Definition at line 90 of file options.cpp.
| bool rosmatlab::Options::isDoubleScalar | ( | const mxArray * | value | ) | [static] |
Definition at line 50 of file options.cpp.
| bool rosmatlab::Options::isLogicalScalar | ( | const mxArray * | value | ) | [static] |
Definition at line 61 of file options.cpp.
| bool rosmatlab::Options::isString | ( | const mxArray * | value | ) | [static] |
Definition at line 36 of file options.cpp.
| void rosmatlab::Options::warnUnused | ( | ) |
Definition at line 117 of file options.cpp.
std::map<std::string,double> rosmatlab::Options::doubles_ [private] |
std::map<std::string,bool> rosmatlab::Options::logicals_ [private] |
std::map<std::string,std::string> rosmatlab::Options::strings_ [private] |
std::map<std::string,bool> rosmatlab::Options::used_ [private] |