casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::RSOption Class Reference

Convenience class for a String, bool, or double. More...

#include <RSUtils.qo.h>

List of all members.

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 StringasString () 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)
RSOptionoperator= (const String &str)
RSOptionoperator= (bool b)
RSOptionoperator= (double d)
RSOptionoperator= (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< Stringm_stringArray

Detailed Description

Convenience class for a String, bool, or double.

Definition at line 378 of file RSUtils.qo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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::operator!= ( const RSOption other)
RSOption& casa::RSOption::operator= ( const String str)
RSOption& casa::RSOption::operator= ( bool  b)
RSOption& casa::RSOption::operator= ( double  d)
RSOption& casa::RSOption::operator= ( const vector< String > &  v)
bool casa::RSOption::operator== ( const RSOption other)

Operators.


Member Data Documentation

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.

Definition at line 426 of file RSUtils.qo.h.

     

Definition at line 422 of file RSUtils.qo.h.

Definition at line 428 of file RSUtils.qo.h.

Definition at line 423 of file RSUtils.qo.h.

Definition at line 429 of file RSUtils.qo.h.


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