Strips off chars from a string value (String formatting functions). More...
#include <Trim.h>
Public Types | |
typedef void | ReturnType |
enum | StripOffPositionType { LEADING, TRAILING, BOTH } |
It controls the mode of stripping characters. More... | |
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 | setFallbackValue (const std::string &v) |
void | setStringValue (ParameterValue *v) |
void | setStripOffChar (const std::string &v) |
void | setStripOffPosition (StripOffPositionType p) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Trim () | |
It initializes a new Trim. More... | |
~Trim () | |
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 | |
ParameterValue * | m_stringValue |
Mandatory. More... | |
std::string | m_stripOffChar |
Mandatory. More... | |
StripOffPositionType | m_stripOffPosition |
Mandatory. More... | |
Strips off chars from a string value (String formatting functions).
The function strips off "leading", "trailing", or "both" chars from a string value. Attributes control the mode of stripping and the character stripped. Defaults are "leading" and blank.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
te::se::Trim::Trim | ( | ) |
It initializes a new Trim.
te::se::Trim::~Trim | ( | ) |
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 |
|
inherited |
void te::se::Trim::setStringValue | ( | ParameterValue * | v | ) |
void te::se::Trim::setStripOffChar | ( | const std::string & | v | ) |
void te::se::Trim::setStripOffPosition | ( | StripOffPositionType | p | ) |
|
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 |
|
private |