#include <CStringArrayparam.h>
Inheritance diagram for CStringArrayparam:
Public Member Functions | |
CStringArrayparam (const string &rKey, int nSize) | |
virtual | ~CStringArrayparam () |
CStringArrayparam (const CStringArrayparam &rhs) | |
CStringArrayparam & | operator= (const CStringArrayparam &rhs) |
int | operator== (const CStringArrayparam &rhs) const |
int | operator!= (const CStringArrayparam &rhs) const |
const string * | getStrings () const |
string & | operator[] (int n) |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValue) |
virtual string | GetParameterFormat () |
CStringArrayparam (const string &rKey, int nSize) | |
virtual | ~CStringArrayparam () |
CStringArrayparam (const CStringArrayparam &rhs) | |
CStringArrayparam & | operator= (const CStringArrayparam &rhs) |
int | operator== (const CStringArrayparam &rhs) const |
int | operator!= (const CStringArrayparam &rhs) const |
const string * | getStrings () const |
string & | operator[] (int n) |
virtual int | SetValue (CTCLInterpreter &rInterp, CTCLResult &rResult, const char *pValue) |
virtual string | GetParameterFormat () |
Protected Member Functions | |
void | setStrings (string *aStrings) |
void | setStrings (string *aStrings) |
Private Attributes | |
string * | m_aStrings |
int | m_nSize |
string * | m_aStrings |
|
Construct a string array parameter.
Definition at line 15 of file CStringArrayparam.cpp. References m_aStrings, and m_nSize. |
|
Destroy a string array parameter. The array needs to be deleted. Definition at line 26 of file CStringArrayparam.cpp. References m_aStrings. |
|
Copy construction. The big work is copying the string array. Definition at line 34 of file CStringArrayparam.cpp. References m_aStrings, and m_nSize. |
|
|
|
|
|
|
|
Implements CConfigurationParameter. |
|
Get the format string for the parameter which is : string[m_nSize] Implements CConfigurationParameter. Definition at line 154 of file CStringArrayparam.cpp. References m_nSize. |
|
Definition at line 37 of file include/CStringArrayparam.h. References m_aStrings. |
|
Definition at line 37 of file CStringArrayparam.h. References m_aStrings. |
|
Definition at line 29 of file include/CStringArrayparam.h. References operator==(). |
|
Definition at line 29 of file CStringArrayparam.h. References operator==(). |
|
|
|
Assignment operator. The main work is deleting any existing string array, allocating a new one and copying the rhs's string array in. Definition at line 50 of file CStringArrayparam.cpp. References m_aStrings, and m_nSize. |
|
|
|
Equality comparison. Two parameters are equal if and only if:
Definition at line 67 of file CStringArrayparam.cpp. References m_aStrings, m_nSize, and CConfigurationParameter::operator==(). Referenced by operator!=(). |
|
|
|
Returns the contents of the string indexed by the parameter or throws a CRangeError exception if the index is invalid. Definition at line 88 of file CStringArrayparam.cpp. References m_aStrings, and m_nSize. |
|
Definition at line 44 of file include/CStringArrayparam.h. References m_aStrings. |
|
Definition at line 44 of file CStringArrayparam.h. References m_aStrings. |
|
Implements CConfigurationParameter. |
|
Purpose: Sets the value as parsed from the command argument. The argument is assumed to be a list of strings to be put into the array elements
Implements CConfigurationParameter. Definition at line 112 of file CStringArrayparam.cpp. References CConfigurationParameter::getSwitch(), m_aStrings, and m_nSize. |
|
Definition at line 20 of file include/CStringArrayparam.h. |
|
Definition at line 20 of file CStringArrayparam.h. Referenced by CStringArrayparam(), getStrings(), operator=(), operator==(), operator[](), setStrings(), SetValue(), and ~CStringArrayparam(). |
|
Definition at line 21 of file include/CStringArrayparam.h. Referenced by CStringArrayparam(), GetParameterFormat(), operator=(), operator==(), operator[](), and SetValue(). |