casa
$Rev:20696$
|
Convenience class for a String, bool, or double. More...
#include <RSUtils.qo.h>
Public Member Functions | |
RSOption (const String &str) | |
String constructor. | |
RSOption (bool b=false) | |
Bool constructor. | |
RSOption (double d) | |
Double constructor. | |
RSOption (const vector< String > &v) | |
String vector constructor. | |
~RSOption () | |
Destructor. | |
bool | isString () const |
Type methods. | |
bool | isBool () const |
bool | isDouble () const |
bool | isStringArray () const |
const String & | asString () const |
Value methods. | |
bool | asBool () const |
double | asDouble () const |
const vector< String > & | asStringArray () const |
bool | operator== (const RSOption &other) |
Operators. | |
bool | operator!= (const RSOption &other) |
RSOption & | operator= (const String &str) |
RSOption & | operator= (bool b) |
RSOption & | operator= (double d) |
RSOption & | operator= (const vector< String > &v) |
Private Attributes | |
bool | m_isString |
String | m_string |
bool | m_isBool |
bool | m_bool |
bool | m_isDouble |
double | m_double |
bool | m_isStringArray |
vector< String > | m_stringArray |
Convenience class for a String, bool, or double.
Definition at line 378 of file RSUtils.qo.h.
casa::RSOption::RSOption | ( | const String & | str | ) |
String constructor.
casa::RSOption::RSOption | ( | bool | b = false | ) |
Bool constructor.
casa::RSOption::RSOption | ( | double | d | ) |
Double constructor.
casa::RSOption::RSOption | ( | const vector< String > & | v | ) |
String vector constructor.
Destructor.
bool casa::RSOption::asBool | ( | ) | const |
double casa::RSOption::asDouble | ( | ) | const |
const String& casa::RSOption::asString | ( | ) | const |
Value methods.
const vector<String>& casa::RSOption::asStringArray | ( | ) | const |
bool casa::RSOption::isBool | ( | ) | const |
bool casa::RSOption::isDouble | ( | ) | const |
bool casa::RSOption::isString | ( | ) | const |
Type methods.
bool casa::RSOption::isStringArray | ( | ) | const |
bool casa::RSOption::operator!= | ( | const RSOption & | other | ) |
RSOption& casa::RSOption::operator= | ( | bool | b | ) |
RSOption& casa::RSOption::operator= | ( | double | d | ) |
bool casa::RSOption::operator== | ( | const RSOption & | other | ) |
Operators.
bool casa::RSOption::m_bool [private] |
Definition at line 425 of file RSUtils.qo.h.
double casa::RSOption::m_double [private] |
Definition at line 427 of file RSUtils.qo.h.
bool casa::RSOption::m_isBool [private] |
Definition at line 424 of file RSUtils.qo.h.
bool casa::RSOption::m_isDouble [private] |
Definition at line 426 of file RSUtils.qo.h.
bool casa::RSOption::m_isString [private] |
Definition at line 422 of file RSUtils.qo.h.
bool casa::RSOption::m_isStringArray [private] |
Definition at line 428 of file RSUtils.qo.h.
String casa::RSOption::m_string [private] |
Definition at line 423 of file RSUtils.qo.h.
vector<String> casa::RSOption::m_stringArray [private] |
Definition at line 429 of file RSUtils.qo.h.