24#include <OnixS/Senaf/MarketData/Export.h>
74 const char*
source()
const;
88 SourceMaxLength = 128,
89 DescriptionMaxLength = 1024
93 char source_[SourceMaxLength];
94 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.
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.
Warning(const std::string &source, WarningCode code, const std::string &description)
Initializes instance with code and description.
KnownWarnings::Enum WarningCode
Code of warning.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
Enum
List of known warnings.
@ 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.