unity.scopes.OperationInfo
A container for details about something of interest that occurs during the operation of a request. More...
#include <unity/scopes/OperationInfo.h>
Public Types | |
enum | InfoCode { Unknown, NoInternet, PoorInternet, NoLocationData, InaccurateLocationData, ResultsIncomplete, DefaultSettingsUsed, SettingsProblem, LastInfoCode_ = SettingsProblem } |
Indicates the type of / cause for the information being reported. More... | |
Public Member Functions | |
OperationInfo (InfoCode code) | |
Create OperationInfo with the given info code. More... | |
OperationInfo (InfoCode code, std::string message) | |
Create OperationInfo with the given info code and message. More... | |
InfoCode | code () const noexcept |
Get the info code. More... | |
std::string | message () const |
Get the message string. More... | |
Copy and assignment | |
Copy and assignment operators (move and non-move versions) have the usual value semantics. | |
OperationInfo (OperationInfo const &other) | |
OperationInfo (OperationInfo &&) | |
OperationInfo & | operator= (OperationInfo const &other) |
OperationInfo & | operator= (OperationInfo &&) |
Detailed Description
A container for details about something of interest that occurs during the operation of a request.
Member Enumeration Documentation
enum unity::scopes::OperationInfo::InfoCode |
Indicates the type of / cause for the information being reported.
For example, the NoInternet
enumerator may indicate that access to the internet was required in order to properly evaluate a request, but no internet connectivity was available.
Constructor & Destructor Documentation
unity::scopes::OperationInfo::OperationInfo | ( | InfoCode | code | ) |
Create OperationInfo with the given info code.
- Parameters
-
code Indicates the type of / cause for the information.
unity::scopes::OperationInfo::OperationInfo | ( | InfoCode | code, |
std::string | message | ||
) |
Create OperationInfo with the given info code and message.
- Parameters
-
code Indicates the type of / cause for the information. message Contains further details about the info code.
Member Function Documentation
|
noexcept |
Get the info code.
- Returns
- Enum indicating the type of info contained.
std::string unity::scopes::OperationInfo::message | ( | ) | const |
Get the message string.
- Returns
- The message string.