rosmatlab::Options Class Reference
#include <options.h>
List of all members.
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_ |
Detailed Description
Definition at line 37 of file options.h.
Constructor & Destructor Documentation
rosmatlab::Options::Options |
( |
int |
nrhs, |
|
|
const mxArray * |
prhs[] | |
|
) |
| | |
rosmatlab::Options::~Options |
( |
|
) |
[virtual] |
Member Function Documentation
bool rosmatlab::Options::getBool |
( |
const std::string & |
key, |
|
|
bool |
default_value = false | |
|
) |
| | |
double rosmatlab::Options::getDouble |
( |
const std::string & |
key, |
|
|
double |
default_value = 0 | |
|
) |
| | |
double rosmatlab::Options::getDoubleScalar |
( |
const mxArray * |
value |
) |
[static] |
bool rosmatlab::Options::getLogicalScalar |
( |
const mxArray * |
value |
) |
[static] |
const std::string & rosmatlab::Options::getString |
( |
const std::string & |
key, |
|
|
const std::string & |
default_value = std::string() | |
|
) |
| | |
std::string rosmatlab::Options::getString |
( |
const mxArray * |
value |
) |
[static] |
bool rosmatlab::Options::hasKey |
( |
const std::string & |
key |
) |
const |
bool rosmatlab::Options::isDoubleScalar |
( |
const mxArray * |
value |
) |
[static] |
bool rosmatlab::Options::isLogicalScalar |
( |
const mxArray * |
value |
) |
[static] |
bool rosmatlab::Options::isString |
( |
const mxArray * |
value |
) |
[static] |
void rosmatlab::Options::warnUnused |
( |
|
) |
|
Member Data Documentation
The documentation for this class was generated from the following files: