33 #ifndef _OBJTOOLS_EDIT_ERROR_HPP_
34 #define _OBJTOOLS_EDIT_ERROR_HPP_
48 : m_Text(
text), m_Severity(severity) {}
58 return x_GetSeverityString() +
": " + GetText();
84 out <<
"</message>" << endl;
93 virtual string GetText(
void)
const {
return m_Text; }
95 virtual int GetCode(
void)
const {
return 0; }
virtual EDiagSev GetSeverity(void) const
CObjEditMessage(const string &text, EDiagSev severity)
virtual string Compose(void) const
virtual int GetCode(void) const
virtual void DumpAsXML(CNcbiOstream &out) const
virtual int GetSubCode(void) const
virtual string GetText(void) const
virtual CObjEditMessage * Clone(void) const
virtual void Write(CNcbiOstream &out) const
virtual void Dump(CNcbiOstream &out) const
string x_GetSeverityString(void) const
virtual void WriteAsXML(CNcbiOstream &out) const
std::ofstream out("events_result.xml")
main entry point for tests
static const char * SeverityName(EDiagSev sev)
Get a common symbolic name for the severity levels.
EDiagSev
Severity level for the posted diagnostics.
void Write(CObjectOStream &out, TConstObjectPtr object, const CTypeRef &type)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static string XmlEncode(const CTempString str, TXmlEncode flags=eXmlEnc_Contents)
Encode a string for XML.
#define NCBI_XOBJUTIL_EXPORT
static void text(MDB_val *v)