MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLAttributeValueOperationElse Class Reference
Inheritance diagram for TSLAttributeValueOperationElse:

Detailed Description

This classification operation may be used to provide a default case, if all others fail.

This operation should always be added last. Any operations added after a TSLAttributeValueOperationElse will never be evaluated.

Public Member Functions

 TSLAttributeValueOperationElse (const TSLRenderingAttributes &rendering=TSLRenderingAttributes(), const char *featureName=NULL)
 
 TSLAttributeValueOperationElse (const TSLAttributeValueOperationElse &other)
 Copy constructor.
 
virtual TSLAttributeValueOperation::OperationType type () const
 
virtual TSLSimpleString operationType () const
 
virtual TSLSimpleString operationValue () const
 
virtual bool operator() (const char *attributeValue) const
 
- Public Member Functions inherited from TSLAttributeValueOperation
virtual ~TSLAttributeValueOperation ()
 Destructor.
 
TSLRenderingAttributesrendering ()
 
const TSLRenderingAttributesrendering () const
 
const char * featureName () const
 
const char * operationName () const
 
void setOperationName (const char *pOperationName)
 
const TSLAttributeValueOperationoperationLHS () const
 
const TSLAttributeValueOperationoperationRHS () const
 

Protected Member Functions

virtual TSLAttributeValueOperationclone () const
 
- Protected Member Functions inherited from TSLAttributeValueOperation
TSLAttributeValueOperationoperator= (const TSLAttributeValueOperation &)
 Assignment operation.
 
 TSLAttributeValueOperation ()
 Constructor.
 
 TSLAttributeValueOperation (const char *value, bool caseSensitive, const TSLRenderingAttributes &rendering=TSLRenderingAttributes(), const char *featureName=NULL)
 
 TSLAttributeValueOperation (double value, const TSLRenderingAttributes &rendering=TSLRenderingAttributes(), const char *featureName=NULL)
 
 TSLAttributeValueOperation (int value, const TSLRenderingAttributes &rendering=TSLRenderingAttributes(), const char *featureName=NULL)
 
 TSLAttributeValueOperation (const TSLAttributeValueOperation &other)
 Copy constructor.
 
double attributeValueAsDouble (const char *attributeValue) const
 
int attributeValueAsInteger (const char *attributeValue) const
 
TSLSimpleString valueAsString () const
 
ValueType repurposeType (const char *attributeValue) const
 
ValueType isNumber (const char *attributeValue) const
 

Additional Inherited Members

- Public Types inherited from TSLAttributeValueOperation
enum  OperationType {
  OperationTypeAnd , OperationTypeElse , OperationTypeEqualTo , OperationTypeGreaterThan ,
  OperationTypeGreaterThanOrEqualTo , OperationTypeLessThan , OperationTypeLessThanOrEqualTo , OperationTypeNot ,
  OperationTypeNotEqualTo , OperationTypeOr
}
 
- Protected Types inherited from TSLAttributeValueOperation
enum  ValueType { ValueTypeString , ValueTypeInteger , ValueTypeDouble }
 
- Protected Attributes inherited from TSLAttributeValueOperation
ValueType m_valueType
 
TSLSimpleString m_value_s
 
ValueType m_value_s_also_n
 
TSLSimpleString m_value_us
 
int m_value_i
 
double m_value_d
 
TSLSimpleString m_operationName
 
TSLSimpleString m_featureName
 
bool m_caseSensitive
 
TSLRenderingAttributes m_renderingAttributes
 
TSLAttributeValueOperationm_a
 
TSLAttributeValueOperationm_b
 

Constructor & Destructor Documentation

◆ TSLAttributeValueOperationElse() [1/2]

TSLAttributeValueOperationElse::TSLAttributeValueOperationElse ( const TSLRenderingAttributes & rendering = TSLRenderingAttributes(),
const char * featureName = NULL )

Constructor.

Parameters
renderingThe rendering to apply to features that match this operation.
featureNameThe name to assign to features that match this operation. If null, an automatically generated feature name will be used.

◆ TSLAttributeValueOperationElse() [2/2]

TSLAttributeValueOperationElse::TSLAttributeValueOperationElse ( const TSLAttributeValueOperationElse & other)

Copy constructor.

Member Function Documentation

◆ clone()

virtual TSLAttributeValueOperation * TSLAttributeValueOperationElse::clone ( ) const
protectedvirtual

◆ operationType()

virtual TSLSimpleString TSLAttributeValueOperationElse::operationType ( ) const
virtual

Return a string describing the operation.

Returns
A TSLSimpleString with the operation name.

Implements TSLAttributeValueOperation.

◆ operationValue()

virtual TSLSimpleString TSLAttributeValueOperationElse::operationValue ( ) const
virtual

Return a string with the value tested in the operation.

Returns
A TSLSimpleString with the value.

Implements TSLAttributeValueOperation.

◆ operator()()

virtual bool TSLAttributeValueOperationElse::operator() ( const char * attributeValue) const
virtual

Evaluate the classification operation.

Parameters
attributeValueThe attribute value to test.
Returns
true if attributeValue matches this operation, false otherwise.

Implements TSLAttributeValueOperation.

◆ type()

virtual TSLAttributeValueOperation::OperationType TSLAttributeValueOperationElse::type ( ) const
virtual

Query the type of the operation

Returns
The type of the TSLAttributeValueOperation

Implements TSLAttributeValueOperation.