91 m_Formatter(formatter),
102 m_Formatter(ddc.m_Formatter)
112 const string& bundle)
114 m_Formatter(ddc.m_Formatter),
154 const string& comment)
163 const string& comment)
173 const string& comment)
180 const string& comment)
187 const string& comment)
194 const string& comment)
201 const string& comment)
208 const string& comment)
215 const string& comment)
220 #ifndef NCBI_INT8_IS_LONG
222 const string& comment)
229 const string& comment)
237 const string& comment)
245 const string& comment)
298 const string& bundle)
305 m_Out << (bundle.empty() ?
"?" : bundle.c_str()) <<
" = {";
330 m_Out << (frame.empty() ?
"?" : frame.c_str()) <<
" {";
343 const string& name,
const string&
value,
349 m_Out << name <<
" = " ;
356 if ( !comment.empty() ) {
357 m_Out <<
" (" << comment <<
")";
375 if ( !title.empty() ) {
376 if (
len < title.length() + 2) {
379 size_t i1 = (
len - title.length() - 2) / 2;
381 tmp +=
" " + title +
" ";
void x_VerifyFrameEnded(void)
CDebugDumpContext(CDebugDumpFormatter &formatter, const string &bundle)
void SetFrame(const string &frame)
void x_VerifyFrameStarted(void)
CDebugDumpContext & m_Parent
CDebugDumpFormatter & m_Formatter
void Log(const string &name, const char *value, CDebugDumpFormatter::EValueType type=CDebugDumpFormatter::eValue, const string &comment=kEmptyStr)
virtual ~CDebugDumpContext(void)
virtual ~CDebugDumpFormatterText(void)
virtual bool StartBundle(unsigned int level, const string &bundle)
void x_InsertPageBreak(const string &title=kEmptyStr, char c='=', unsigned int len=78)
virtual bool StartFrame(unsigned int level, const string &frame)
virtual void PutValue(unsigned int level, const string &name, const string &value, EValueType type, const string &comment)
virtual void EndFrame(unsigned int level, const string &frame)
CDebugDumpFormatterText(ostream &out)
void x_IndentLine(unsigned int level, char c=' ', unsigned int len=2)
virtual void EndBundle(unsigned int level, const string &bundle)
void DumpToConsole(void) const
void DebugDumpText(ostream &out, const string &bundle, unsigned int depth) const
static bool sm_DumpEnabled
void DebugDumpFormat(CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
virtual void DebugDump(CDebugDumpContext ddc, unsigned int depth) const =0
static void EnableDebugDump(bool on)
virtual ~CDebugDumpable(void)
static unsigned char depth[2 *(256+1+29)+1]
std::ofstream out("events_result.xml")
main entry point for tests
int64_t Int8
8-byte (64-bit) signed integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string Int8ToString(Int8 value, TNumToStringFlags flags=0, int base=10)
Convert Int8 to string.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
static string LongToString(long value, TNumToStringFlags flags=0, int base=10)
Convert Int to string.
static const string BoolToString(bool value)
Convert bool to string.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
static void PtrToString(string &out_str, const void *ptr)
Convert pointer to string.
static string UIntToString(unsigned int value, TNumToStringFlags flags=0, int base=10)
Convert UInt to string.
static string ULongToString(unsigned long value, TNumToStringFlags flags=0, int base=10)
Convert unsigned long to string.
static string UInt8ToString(Uint8 value, TNumToStringFlags flags=0, int base=10)
Convert UInt8 to string.
const GenericPointer< typename T::ValueType > T2 value