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

Keywords handler for the capabilities documents. More...

#include <Keyword.h>

Collaboration diagram for Keyword:
Collaboration graph

Public Member Functions

 Keyword (std::string content, std::map< std::string, std::string > attributes)
 Create a Keyword.
 Keyword (const Keyword &origKW)
 Copy Constructor.
Keywordoperator= (Keyword const &other)
 Assignement.
bool operator== (const Keyword &other) const
 Test whether 2 Keywords are equals.
bool operator!= (const Keyword &other) const
 Test whether 2 Keywords are different.
const std::string getContent () const
 Return the keyword text.
const std::map< std::string,
std::string > * 
getAttributes () const
 Return the attributes list.
bool hasAttributes () const
 Test whether the keyword has attributes.
virtual ~Keyword ()
 Default destructor.

Private Attributes

std::string content
 XML element content.
std::map< std::string,
std::string > 
attributes
 XML attributes list.

Detailed Description

Keywords handler for the capabilities documents.

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

A Keyword represent a Keyword element in the differents capabilities documents. A text value and an attributes list define it.

Constructor & Destructor Documentation

Keyword::Keyword ( std::string  content,
std::map< std::string, std::string >  attributes 
)

Create a Keyword.

Parameters
[in]contentvalue
[in]attributesattributes list in KVP
Keyword::Keyword ( const Keyword origKW)

Copy Constructor.

Create a Keyword from another

Parameters
[in]origKWkeyword to copy

Member Function Documentation

const std::map<std::string,std::string>* Keyword::getAttributes ( ) const
inline

Return the attributes list.

Returns
attributes list
const std::string Keyword::getContent ( ) const
inline

Return the keyword text.

Returns
keyword value
bool Keyword::hasAttributes ( ) const
inline

Test whether the keyword has attributes.

Returns
true if it has at least one
bool Keyword::operator!= ( const Keyword other) const

Test whether 2 Keywords are different.

Returns
true if their values are different
bool Keyword::operator== ( const Keyword other) const

Test whether 2 Keywords are equals.

Returns
true if they share the value

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