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

Detailed Description

This helper class allows plugins to register themselves with the OWS context parser for use when loading a context document.

Static Public Member Functions

static void registerOffering (const char *code, TSLOWCOffering *factory)
 
static void registerDefaultLayerConverter (TSLDataLayerTypeEnum layerType, TSLOWCOfferingLayerConverterFunc converter)
 
static void loadPlugins (const char *directory)
 

Member Function Documentation

◆ loadPlugins()

static void TSLOWCOfferingRegister::loadPlugins ( const char * directory)
static

◆ registerDefaultLayerConverter()

static void TSLOWCOfferingRegister::registerDefaultLayerConverter ( TSLDataLayerTypeEnum layerType,
TSLOWCOfferingLayerConverterFunc converter )
static

This method should be called to set the default offering plugin to use when visualizing an offering through the TSLOWSContextVisualizer. Only one offering can be registered for a single type of MapLink data layer.

◆ registerOffering()

static void TSLOWCOfferingRegister::registerOffering ( const char * code,
TSLOWCOffering * factory )
static

This method should be called when a plugin is loaded to register it with the core parser. Whenever an offering that matches the given code is encountered, the create() method will be invoked on the given offering object to create a new instance of the correct type.

Parameters
codeThe code string from the OWS context specification that identifies the type of offering being handled.
factoryA factory object for creating new instances of the offering type when reading context documents. The register takes ownership of the factory object.