24 #include <OnixS/Senaf/MarketData/Export.h> 29 namespace OnixS {
namespace Senaf {
namespace MarketData {
42 static Enum deserialize(
const char* value);
45 static const char* toString(
Enum value);
56 Warning(
const std::string& source, WarningCode code);
59 Warning(
const std::string& source, WarningCode code,
const std::string& description);
68 WarningCode code()
const;
71 const char* description()
const;
74 const char* source()
const;
77 std::string toString()
const;
80 void toString(std::string&)
const;
88 SourceMaxLength = 128,
89 DescriptionMaxLength = 1024
93 char source_[SourceMaxLength];
94 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.