MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLWPSLiteralValuesChoice Class Reference

Detailed Description

Represents a description of a literal values list. It encodes the Literal ValuesChoice element from the WPS Schema.

Its use is synonomous with that of a union in that setting a value any of its properties will clear out any values set on its other properties. One, and only one, property holds a value at any one time.

Public Member Functions

 TSLWPSLiteralValuesChoice (const TSLOWSAllowedValues &content)
 
 TSLWPSLiteralValuesChoice ()
 
 TSLWPSLiteralValuesChoice (const TSLWPSValuesReferenceType &content)
 
 TSLWPSLiteralValuesChoice (const TSLWPSLiteralValuesChoice &rhs)
 
void destroy ()
 
TSLWPSLiteralValuesChoiceType type () const
 
const TSLOWSAllowedValues * valAsAllowedValues () const
 
const TSLWPSValuesReferenceTypevalAsValuesReference () const
 
void val (const TSLOWSAllowedValues &content)
 
void val ()
 
void val (const TSLWPSValuesReferenceType &content)
 
void * operator new (size_t size)
 
void * operator new (size_t size, char *filename, int line)
 

Constructor & Destructor Documentation

◆ TSLWPSLiteralValuesChoice() [1/4]

TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice ( const TSLOWSAllowedValues & content)

Constructs an input form choice with allowed values as content.

Parameters
contentConst reference to the allowed values.

◆ TSLWPSLiteralValuesChoice() [2/4]

TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice ( )

Default constructor. Creates a literal values choice with an 'AnyValue' content.

◆ TSLWPSLiteralValuesChoice() [3/4]

TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice ( const TSLWPSValuesReferenceType & content)

Constructs an input form choice with a values reference type as content.

Parameters
contentConst reference to the values reference type.

◆ TSLWPSLiteralValuesChoice() [4/4]

TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice ( const TSLWPSLiteralValuesChoice & rhs)

Copy constructor, performs a deep copy of the given literal values choice.

Parameters
rhsConst reference to the literal values choice to copy.

Member Function Documentation

◆ destroy()

void TSLWPSLiteralValuesChoice::destroy ( )

Used to delete this object

◆ operator new() [1/2]

void * TSLWPSLiteralValuesChoice::operator new ( size_t size)

◆ operator new() [2/2]

void * TSLWPSLiteralValuesChoice::operator new ( size_t size,
char * filename,
int line )

When included in an MFC applicaton in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the users application may be in debug mode.

◆ type()

TSLWPSLiteralValuesChoiceType TSLWPSLiteralValuesChoice::type ( ) const

Returns the type of the literal values choice. This indicates which property of the "union" is currently set.

◆ val() [1/3]

void TSLWPSLiteralValuesChoice::val ( )

Sets the content to be 'AnyValue'. This will clear either of the other input choices if they are currently set.

◆ val() [2/3]

void TSLWPSLiteralValuesChoice::val ( const TSLOWSAllowedValues & content)

Sets the allowed values property of the union. This will clear the value reference if it is currently set.

Parameters
contentConst reference to the allowed values to set.

◆ val() [3/3]

void TSLWPSLiteralValuesChoice::val ( const TSLWPSValuesReferenceType & content)

Sets the values reference property of the union. This will clear the allowed values if it currently set.

Parameters
contentConst reference to the value reference type to set.

◆ valAsAllowedValues()

const TSLOWSAllowedValues * TSLWPSLiteralValuesChoice::valAsAllowedValues ( ) const

Returns the allowed values property of the union. If none has been set this method returns 0.

◆ valAsValuesReference()

const TSLWPSValuesReferenceType * TSLWPSLiteralValuesChoice::valAsValuesReference ( ) const

Returns the values reference property of the union. If none has been set this method returns 0.