UPnPsdk 0.1
Universal Plug and Play +, Software Development Kit
 
Loading...
Searching...
No Matches
UPnPsdk::CAuthority Class Reference

Authority component of a URI reference. More...

#include <uri.hpp>

+ Collaboration diagram for UPnPsdk::CAuthority:

Public Member Functions

 CAuthority (std::string_view a_uri_sv)
 Initialize the authority component.
 
CComponent::STATE state () const
 Get state of the authority.
 
std::string str () const
 Get the string of the authority component.
 

Public Attributes

CUserinfo userinfo
 
CHost host
 
CPort port
 

Detailed Description

Authority component of a URI reference.

Definition at line 272 of file uri.hpp.

Constructor & Destructor Documentation

◆ CAuthority()

UPnPsdk::CAuthority::CAuthority ( std::string_view  a_uri_sv)

Initialize the authority component.

Exceptions
std::invalid_argument
  • if host pattern is invalid. No DNS lookup is performed.
  • if port number is invalid.
Parameters
[in]a_uri_svInput URI string

Definition at line 623 of file uri.cpp.

Member Function Documentation

◆ state()

CComponent::STATE UPnPsdk::CAuthority::state ( ) const

Get state of the authority.

Returns
State of the authority component.

Definition at line 628 of file uri.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ str()

std::string UPnPsdk::CAuthority::str ( ) const

Get the string of the authority component.

Returns
the authority component string.

Definition at line 643 of file uri.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ userinfo

CUserinfo UPnPsdk::CAuthority::userinfo

authority subcomponent

Definition at line 276 of file uri.hpp.

◆ host

CHost UPnPsdk::CAuthority::host

authority subcomponent

Definition at line 277 of file uri.hpp.

◆ port

CPort UPnPsdk::CAuthority::port

authority subcomponent

Definition at line 278 of file uri.hpp.


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