10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::net::URLParser Class Referenceabstract

#include <URLParser.h>

Detailed Description

A service to parse URLs from strings.

Inheritance diagram for tenduke::net::URLParser:
tenduke::net::AbstractURLParser tenduke::test::mocks::URLParserMock

Public Member Functions

virtual std::unique_ptr<::tenduke::net::URLptrFrom (const std::string &urlToParse) const =0
 Parses URL from provided string.
 
virtual::tenduke::net::URL from (const std::string &urlToParse) const =0
 Parses URL from provided string.
 

Member Function Documentation

◆ from()

virtual::tenduke::net::URL tenduke::net::URLParser::from ( const std::string & urlToParse) const
pure virtual

Parses URL from provided string.

Returns
the parsed URL
Exceptions
tenduke::net::URLException(or subclasses) if parsing the URL failed

◆ ptrFrom()

virtual std::unique_ptr<::tenduke::net::URL > tenduke::net::URLParser::ptrFrom ( const std::string & urlToParse) const
pure virtual

Parses URL from provided string.

Returns
the parsed URL
Exceptions
tenduke::net::URLException(or subclasses) if parsing the URL failed

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