$search

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[] 
)

Definition at line 73 of file options.cpp.

rosmatlab::Options::~Options (  )  [virtual]

Definition at line 86 of file options.cpp.


Member Function Documentation

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.

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.

std::string rosmatlab::Options::getString ( const mxArray *  value  )  [static]

Definition at line 41 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.


Member Data Documentation

std::map<std::string,double> rosmatlab::Options::doubles_ [private]

Definition at line 63 of file options.h.

std::map<std::string,bool> rosmatlab::Options::logicals_ [private]

Definition at line 64 of file options.h.

std::map<std::string,std::string> rosmatlab::Options::strings_ [private]

Definition at line 62 of file options.h.

std::map<std::string,bool> rosmatlab::Options::used_ [private]

Definition at line 66 of file options.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


rosmatlab
Author(s): Johannes Meyer
autogenerated on Mon Dec 17 14:48:18 2012