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 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 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 void te::common::BaseVisitable< Visitor , void >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

typedef Visitor te::common::BaseVisitable< Visitor , void >::VisitorType
inherited

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.

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

Destructor.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< Visitor , void >::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)
void te::se::Function::setFallbackValue ( const std::string &  v)
inherited
void te::se::ChangeCase::setStringValue ( ParameterValue v)

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.

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 file: