22 #include <OnixS/Senaf/MarketData/Export.h> 27 namespace OnixS {
namespace Senaf {
namespace MarketData {
40 static Enum deserialize(
const char* value);
43 static const char* toString(
Enum value);
54 Warning(
const std::string& source, WarningCode code);
57 Warning(
const std::string& source, WarningCode code,
const std::string& description);
66 WarningCode code()
const;
69 const char* description()
const;
72 const char* source()
const;
75 std::string toString()
const;
78 void toString(std::string&)
const;
86 SourceMaxLength = 128,
87 DescriptionMaxLength = 1024
91 char source_[SourceMaxLength];
92 char description_[DescriptionMaxLength];
KnownWarnings::Enum WarningCode
Code of warning.
const char * source() const
Origin of the warning.
Enum
List of known warnings.
WarningCode code() const
Code of warning.
std::string toString() const
String presentation of an warning.
std::ostream & operator<<(std::ostream &, const Error &)
Make it printable to formatted C++ I/O streams.
const char * description() const
Human readable description.