113 const char*
source()
const;
127 SourceMaxLength = 128,
128 DescriptionMaxLength = 1024
132 char source_[SourceMaxLength];
133 char description_[DescriptionMaxLength];
std::string toString() const
String presentation of an warning.
Warning(const std::string &source, WarningCode code)
Initializes instance with just a code.
Warning & operator=(const Warning &other)
Copies warning attributes from another instance.
Warning(const std::string &source, WarningCode code, const std::string &description, FeedId feedId)
Initializes instance with code, description and feed ID.
const char * source() const
Origin of the warning.
void toString(std::string &) const
Appends presentation of an warning to the string.
WarningCode code() const
Code of warning.
Warning(const Warning &other)
Initializes as clone of another warning.
const char * description() const
Human readable description.
~Warning()
Cleans internal resources.
const Optional< FeedId > & feedId() const
Feed ID (if available).
Warning(const std::string &source, WarningCode code, const std::string &description)
Initializes instance with code and description.
KnownWarnings::Enum WarningCode
Code of warning.
int FeedId
Alias for market types.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
Enum
List of known warnings.
@ NoUdsForMarketType
Indicates there are no UDS for requested market type.
@ Generic
General-purpose warning.
static const char * toString(Enum value)
Returns description of a particular warning.
static Enum deserialize(const char *value)
Returns constant from its text presentation.