All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::se::ChangeCase Class Referenceabstract

Changes the case of strings (String formatting functions). More...

#include <ChangeCase.h>

Inheritance diagram for te::se::ChangeCase:
te::se::Function te::fe::Expression te::common::BaseVisitable< Visitor >

Public Types

enum  CaseDirectionType { TOUPPER, TOLOWER }
 The type of case. More...
 
typedef R 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 Expressionclone () 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...
 
ParameterValuem_stringValue
 Mandatory. More...
 

Detailed Description

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.

See also
Function, ParameterValue

Definition at line 52 of file ChangeCase.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< Visitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

te::se::ChangeCase::ChangeCase ( )

It initializes a new ChangeCase.

Definition at line 30 of file ChangeCase.cpp.

te::se::ChangeCase::~ChangeCase ( )

Destructor.

Definition at line 36 of file ChangeCase.cpp.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
virtual Expression* te::fe::Expression::clone ( ) const
pure virtualinherited
const std::string & te::se::Function::getFallbackValue ( ) const
inherited
void te::se::ChangeCase::setDirection ( CaseDirectionType  cd)

Definition at line 47 of file ChangeCase.cpp.

void te::se::ChangeCase::setStringValue ( ParameterValue v)

Definition at line 41 of file ChangeCase.cpp.

Member Data Documentation

CaseDirectionType te::se::ChangeCase::m_direction
private

Mandatory.

Definition at line 86 of file ChangeCase.h.

std::string te::se::Function::m_fallbackValue
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.

Referenced by te::se::Categorize::Categorize(), and te::se::Interpolate::Interpolate().

ParameterValue* te::se::ChangeCase::m_stringValue
private

Mandatory.

Definition at line 85 of file ChangeCase.h.


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