WMSGetCapabilities Class Reference

#include <WMSGetCapabilities.h>

Inheritance diagram for WMSGetCapabilities:

TdkMonitor List of all members.

Public Member Functions

 WMSGetCapabilities (TdkConDescriptor &descriptor)
 ~WMSGetCapabilities ()
std::string getCapabilities (std::string url, long projectId, long viewId)

Private Member Functions

NodoXMLcreateRootNode (std::string url)
NodoXMLcreateCapabilityNode (std::string url)
NodoXMLcreateLayerCollectionNode (TdkView *view)
NodoXMLcreateLayerNode (TdkTheme *theme, TeProjection *viewProj)
std::string createHeader ()

Private Attributes

TdkConDescriptor_descriptor

Detailed Description

Class that implements the WMS Get Capabilities functionality.


Constructor & Destructor Documentation

WMSGetCapabilities::WMSGetCapabilities ( TdkConDescriptor descriptor  ) 

Constructor. Constructs a WMSGetCapabilities object.

Parameters:
Database connection information reference.

WMSGetCapabilities::~WMSGetCapabilities (  ) 

Destructor. Destroys a WMSGetCapabilities object. (note that the destructor is not virtual, so this class is not indented to be inherited from)


Member Function Documentation

std::string WMSGetCapabilities::getCapabilities ( std::string  url,
long  projectId,
long  viewId 
)

Builds a XML string listing the WMS capabilities of the server.

Parameters:
URL of the WMS address to be included in the attribute xlink:href of the OnlineResource node of the XML string.
Id of the selected project.
Id of the selected project's view.
Returns:
XML string listing the WMS capabilities of the server.

NodoXML * WMSGetCapabilities::createRootNode ( std::string  url  )  [private]

Auxiliary method that creates the root node of the capabilities XML tree.

Parameters:
URL of the WMS address to be included in the attribute xlink:href of the OnlineResource node of the XML string.
Returns:
XML node of the root of the capabilities tree.

NodoXML * WMSGetCapabilities::createCapabilityNode ( std::string  url  )  [private]

Auxiliary method that creates the capabilities node of the capabilities XML tree.

Parameters:
URL of the WMS address to be included in the attribute xlink:href of the OnlineResource node of the XML string.
Returns:
XML capabilities node.

NodoXML * WMSGetCapabilities::createLayerCollectionNode ( TdkView view  )  [private]

Auxiliary method to create a XML node for a given view.

Parameters:
view the node will be representing.
Returns:
View that the node will represent.

NodoXML * WMSGetCapabilities::createLayerNode ( TdkTheme theme,
TeProjection *  viewProj 
) [private]

Auxiliary method to create a XML node for a given theme.

Parameters:
Theme that the node will represent.
Projection that is used by the view.
Returns:
XML node that represents a theme.

std::string WMSGetCapabilities::createHeader (  )  [private]

Creates a basic WMS XML header.

Returns:
Basic WMS XML header.


Member Data Documentation

TdkConDescriptor& WMSGetCapabilities::_descriptor [private]

Database connection information reference. Contains all the necessary data to create a connection to the TDK database.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:55:00 2007 for TDK by  doxygen 1.5.2