Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Private Attributes | List of all members
ResourceLocator Class Reference

External ressources handler for the capabilities documents. More...

#include <ResourceLocator.h>

Inheritance diagram for ResourceLocator:
Inheritance graph
Collaboration diagram for ResourceLocator:
Collaboration graph

Public Member Functions

 ResourceLocator (std::string format, std::string href)
 Create a ResourceLocator.
 ResourceLocator (const ResourceLocator &origRL)
 Copy Constructor.
ResourceLocatoroperator= (ResourceLocator const &other)
 Assignement.
bool operator== (const ResourceLocator &other) const
 Test whether 2 ResourceLocators are equals.
bool operator!= (const ResourceLocator &other) const
 Test whether 2 ResourceLocators are different.
const std::string getFormat () const
 Return the linked file mime type.
const std::string getHRef () const
 Return the file link in URL format.
virtual ~ResourceLocator ()
 Default destructor.

Private Attributes

std::string format
 Linked file mime type.
std::string href
 File link as a URL.

Detailed Description

External ressources handler for the capabilities documents.

Author
Institut national de l'information géographique et forestière

A ResourceLocator represent an external link element in the differents capabilities documents.

Constructor & Destructor Documentation

ResourceLocator::ResourceLocator ( std::string  format,
std::string  href 
)

Create a ResourceLocator.

Parameters
[in]formatlinked file mime type
[in]hreffile link as a URL
ResourceLocator::ResourceLocator ( const ResourceLocator origRL)

Copy Constructor.

Create a ResourceLocator from another

Parameters
[in]origRLResourceLocator to copy

Member Function Documentation

const std::string ResourceLocator::getFormat ( ) const
inline

Return the linked file mime type.

Returns
type/mime

Here is the caller graph for this function:

const std::string ResourceLocator::getHRef ( ) const
inline

Return the file link in URL format.

Returns
URL

Here is the caller graph for this function:

bool ResourceLocator::operator!= ( const ResourceLocator other) const

Test whether 2 ResourceLocators are different.

Returns
true if one of their attributes is different
bool ResourceLocator::operator== ( const ResourceLocator other) const

Test whether 2 ResourceLocators are equals.

Returns
true if all their attributes are identical

The documentation for this class was generated from the following files: