LuciadCPillar 2023.1.04
luciad::UriQueryParameter Class Referencefinal

A class representing an URI query parameter. More...

#include <luciad/net/UriQueryParameter.h>

Public Member Functions

 UriQueryParameter (std::string key, std::string value)
 Creates an URI query parameter with the given key and value. More...
 
const std::string & getKey () const
 Returns the key of this URI query parameter. More...
 
const std::string & getValue () const
 Returns the value of this URI query parameter. More...
 
bool operator!= (const UriQueryParameter &other) const
 
bool operator== (const UriQueryParameter &other) const
 

Detailed Description

A class representing an URI query parameter.

UriQueryParameter instances are immutable.

Since
2023.0

Constructor & Destructor Documentation

◆ UriQueryParameter()

luciad::UriQueryParameter::UriQueryParameter ( std::string  key,
std::string  value 
)

Creates an URI query parameter with the given key and value.

Parameters
keythe query parameter key.
valuethe query parameter value.

Member Function Documentation

◆ getKey()

const std::string & luciad::UriQueryParameter::getKey ( ) const

Returns the key of this URI query parameter.

Returns
the key of this URI query parameter.

◆ getValue()

const std::string & luciad::UriQueryParameter::getValue ( ) const

Returns the value of this URI query parameter.

Returns
the value of this URI query parameter.

◆ operator!=()

bool luciad::UriQueryParameter::operator!= ( const UriQueryParameter other) const

◆ operator==()

bool luciad::UriQueryParameter::operator== ( const UriQueryParameter other) const