![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents the mapping between TSLEntity attributes and properties and the values contained by a GML Feature instance. For instance, it can be used to map a GML feature property called 'name' to the TSLEntity's name property.
Mapping entries should be added to instances of this class using the 'add' method, referencing the target property/attribute of the entity using the TSLGMLEntityTargetType enumeration, whilst properties of the GML feature instance should be passed by name.
The GML feature properties should be referenced without either a namespace nor namespace prefix. The only exception to this is the 'id' property that is defined on the base feature type, AbstractFeatureType, which instead should be referenced as 'gml:id'.
Each feature instance target name and each entity target type should only be referenced once in each mapping object. Attempting to add duplicates of either target will result in failure.
Instances of this class may optionally be used when loading GML instance data, when creating a GML application schema through the TSLGMLApplication SchemaFactory and when writing GML instance data using the TSLGMLInstanceData Writer. Additionally instances may be added to a TSLGMLPropertyMappingSet, to allow difference mappings to be used for each GML feature type.
Public Member Functions | |
TSLGMLPropertyMapping () | |
TSLGMLPropertyMapping (const TSLGMLPropertyMapping &rhs) | |
bool | add (const char *propertyTarget, TSLGMLEntityMappingType entityTarget) |
void | destroy () |
const char * | findTarget (TSLGMLEntityMappingType entityTarget) const |
const TSLGMLEntityMappingType * | findTarget (const char *propertyTarget) const |
bool | remove (TSLGMLEntityMappingType entityTarget) |
bool | remove (const char *propertyTarget) |
void * | operator new (size_t size) |
void * | operator new (size_t size, char *filename, int line) |
TSLGMLPropertyMapping::TSLGMLPropertyMapping | ( | ) |
TSLGMLPropertyMapping::TSLGMLPropertyMapping | ( | const TSLGMLPropertyMapping & | rhs | ) |
Copy constructor
bool TSLGMLPropertyMapping::add | ( | const char * | propertyTarget, |
TSLGMLEntityMappingType | entityTarget ) |
This method is used to add an entry to this mapping instance
void TSLGMLPropertyMapping::destroy | ( | ) |
Destroy this object.
This method must be used instead of delete.
const TSLGMLEntityMappingType * TSLGMLPropertyMapping::findTarget | ( | const char * | propertyTarget | ) | const |
const char * TSLGMLPropertyMapping::findTarget | ( | TSLGMLEntityMappingType | entityTarget | ) | const |
void * TSLGMLPropertyMapping::operator new | ( | size_t | size | ) |
void * TSLGMLPropertyMapping::operator new | ( | size_t | size, |
char * | filename, | ||
int | line ) |
When included in an MFC application 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 user's application may be in debug mode.
bool TSLGMLPropertyMapping::remove | ( | const char * | propertyTarget | ) |
bool TSLGMLPropertyMapping::remove | ( | TSLGMLEntityMappingType | entityTarget | ) |