![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
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 TSLWPSValuesReferenceType * | valAsValuesReference () 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) |
TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice | ( | const TSLOWSAllowedValues & | content | ) |
Constructs an input form choice with allowed values as content.
content | Const reference to the allowed values. |
TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice | ( | ) |
Default constructor. Creates a literal values choice with an 'AnyValue' content.
TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice | ( | const TSLWPSValuesReferenceType & | content | ) |
Constructs an input form choice with a values reference type as content.
content | Const reference to the values reference type. |
TSLWPSLiteralValuesChoice::TSLWPSLiteralValuesChoice | ( | const TSLWPSLiteralValuesChoice & | rhs | ) |
Copy constructor, performs a deep copy of the given literal values choice.
rhs | Const reference to the literal values choice to copy. |
void TSLWPSLiteralValuesChoice::destroy | ( | ) |
Used to delete this object
void * TSLWPSLiteralValuesChoice::operator new | ( | size_t | size | ) |
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.
TSLWPSLiteralValuesChoiceType TSLWPSLiteralValuesChoice::type | ( | ) | const |
Returns the type of the literal values choice. This indicates which property of the "union" is currently set.
void TSLWPSLiteralValuesChoice::val | ( | ) |
Sets the content to be 'AnyValue'. This will clear either of the other input choices if they are currently set.
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.
content | Const reference to the allowed values to set. |
void TSLWPSLiteralValuesChoice::val | ( | const TSLWPSValuesReferenceType & | content | ) |
Sets the values reference property of the union. This will clear the allowed values if it currently set.
content | Const reference to the value reference type to set. |
const TSLOWSAllowedValues * TSLWPSLiteralValuesChoice::valAsAllowedValues | ( | ) | const |
Returns the allowed values property of the union. If none has been set this method returns 0.
const TSLWPSValuesReferenceType * TSLWPSLiteralValuesChoice::valAsValuesReference | ( | ) | const |
Returns the values reference property of the union. If none has been set this method returns 0.