|
retdec-cpp
|
Library settings. More...
#include <settings.h>
Public Member Functions | |
Construction, Assignment, and Destruction | |
| Settings () | |
| Constructs a default settings. More... | |
| Settings (const Settings &other) | |
| Copy-constructs settings from the given settings. More... | |
| Settings (Settings &&other) | |
| Move-constructs settings from the given settings. More... | |
| Settings & | operator= (const Settings &other) |
| Copy-assigns the given settings. More... | |
| Settings & | operator= (Settings &&other) |
| Move-assigns the given settings. More... | |
| ~Settings () | |
| Destructs the settings. More... | |
API Key | |
| Settings & | apiKey (const std::string &apiKey) |
| Sets a new API key. More... | |
| Settings | withApiKey (const std::string &apiKey) const |
| Returns a copy of the settings with a new API key. More... | |
| std::string | apiKey () const |
| Returns the API key. More... | |
API URL | |
| Settings & | apiUrl (const std::string &apiUrl) |
| Sets a new URL to the API. More... | |
| Settings | withApiUrl (const std::string &apiUrl) const |
| Returns a copy of the settings with a new URL to the API. More... | |
| std::string | apiUrl () const |
| Returns the URL to the API. More... | |
User Agent | |
| Settings & | userAgent (const std::string &userAgent) |
| Sets a new user agent. More... | |
| Settings | withUserAgent (const std::string &userAgent) const |
| Returns a copy of the settings with a new user agent. More... | |
| std::string | userAgent () const |
| Returns the user agent. More... | |
Static Public Attributes | |
Default Values | |
| static const std::string | DefaultApiUrl = "https://retdec.com/service/api" |
| Default URL to the API. More... | |
| static const std::string | DefaultApiKey = "" |
| Default API key. More... | |
| static const std::string | DefaultUserAgent |
| Default user agent. More... | |
Library settings.
| retdec::Settings::Settings | ( | ) |
Constructs a default settings.
|
default |
Copy-constructs settings from the given settings.
|
default |
Move-constructs settings from the given settings.
|
default |
Destructs the settings.
| Settings & retdec::Settings::apiKey | ( | const std::string & | apiKey | ) |
Sets a new API key.
*this). | std::string retdec::Settings::apiKey | ( | ) | const |
Returns the API key.
| Settings & retdec::Settings::apiUrl | ( | const std::string & | apiUrl | ) |
Sets a new URL to the API.
*this). | std::string retdec::Settings::apiUrl | ( | ) | const |
Returns the URL to the API.
Copy-assigns the given settings.
Move-assigns the given settings.
| Settings & retdec::Settings::userAgent | ( | const std::string & | userAgent | ) |
Sets a new user agent.
*this). | std::string retdec::Settings::userAgent | ( | ) | const |
Returns the user agent.
| Settings retdec::Settings::withApiKey | ( | const std::string & | apiKey | ) | const |
Returns a copy of the settings with a new API key.
| Settings retdec::Settings::withApiUrl | ( | const std::string & | apiUrl | ) | const |
Returns a copy of the settings with a new URL to the API.
| Settings retdec::Settings::withUserAgent | ( | const std::string & | userAgent | ) | const |
Returns a copy of the settings with a new user agent.
|
static |
Default API key.
|
static |
Default URL to the API.
|
static |
Default user agent.
1.8.11