22#include "OnixS/CME/DropCopy/Export.h"
75 const char*
source()
const;
89 SourceMaxLength = 128,
90 DescriptionMaxLength = 1024
94 char source_[SourceMaxLength];
95 char description_[DescriptionMaxLength];
124ONIXS_CME_DROP_COPY_EXPORT std::ostream&
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 OnixS::CME::DropCopy::Error &)
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.