Changes the case of strings (String formatting functions). More...
#include <ChangeCase.h>
Public Types | |
enum | CaseDirectionType { TOUPPER, TOLOWER } |
The type of case. More... | |
typedef void | ReturnType |
typedef Visitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
virtual Expression * | clone () const =0 |
It returns a clone of this object. More... | |
const std::string & | getFallbackValue () const |
void | setDirection (CaseDirectionType cd) |
void | setFallbackValue (const std::string &v) |
void | setStringValue (ParameterValue *v) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
ChangeCase () | |
It initializes a new ChangeCase. More... | |
~ChangeCase () | |
Destructor. More... | |
Protected Attributes | |
std::string | m_fallbackValue |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory) More... | |
Private Attributes | |
CaseDirectionType | m_direction |
Mandatory. More... | |
ParameterValue * | m_stringValue |
Mandatory. More... | |
Changes the case of strings (String formatting functions).
The function changes the case of the StringValue as indicated by the attribute direction. Possible values of the latter are "toUpper" and "toLower", where the former is the default value.
Definition at line 52 of file ChangeCase.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
The type of case.
Enumerator | |
---|---|
TOUPPER |
It means to change case to upper case. |
TOLOWER |
It means to change case to lower case. |
Definition at line 61 of file ChangeCase.h.
te::se::ChangeCase::ChangeCase | ( | ) |
It initializes a new ChangeCase.
te::se::ChangeCase::~ChangeCase | ( | ) |
Destructor.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
pure virtualinherited |
It returns a clone of this object.
Implemented in te::fe::BinaryOperator, te::fe::Function, te::se::Interpolate, te::se::Categorize, te::fe::Literal, te::fe::PropertyName, te::se::Recode, te::se::InterpolationPoint, and te::se::MapItem.
|
inherited |
void te::se::ChangeCase::setDirection | ( | CaseDirectionType | cd | ) |
|
inherited |
void te::se::ChangeCase::setStringValue | ( | ParameterValue * | v | ) |
|
private |
Mandatory.
Definition at line 86 of file ChangeCase.h.
|
protectedinherited |
The value of the fallbackValue attribute is used as a default value, if the SE implementation does not support the function. If the implementation supports the function, then the result value is determined by executing the function. (Mandatory)
Definition at line 88 of file Function.h.
|
private |
Mandatory.
Definition at line 85 of file ChangeCase.h.