NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CDebugDumpFormatterText Class Reference

Search Toolkit Book for CDebugDumpFormatterText

#include <corelib/ddumpable.hpp>

+ Inheritance diagram for CDebugDumpFormatterText:
+ Collaboration diagram for CDebugDumpFormatterText:

Public Member Functions

 CDebugDumpFormatterText (ostream &out)
 
virtual ~CDebugDumpFormatterText (void)
 
virtual bool StartBundle (unsigned int level, const string &bundle)
 
virtual void EndBundle (unsigned int level, const string &bundle)
 
virtual bool StartFrame (unsigned int level, const string &frame)
 
virtual void EndFrame (unsigned int level, const string &frame)
 
virtual void PutValue (unsigned int level, const string &name, const string &value, EValueType type, const string &comment)
 
- Public Member Functions inherited from CDebugDumpFormatter
virtual ~CDebugDumpFormatter ()
 

Private Member Functions

void x_IndentLine (unsigned int level, char c=' ', unsigned int len=2)
 
void x_InsertPageBreak (const string &title=kEmptyStr, char c='=', unsigned int len=78)
 

Private Attributes

ostream & m_Out
 

Additional Inherited Members

- Public Types inherited from CDebugDumpFormatter
enum  EValueType { eValue , eString , ePointer }
 

Detailed Description

Definition at line 168 of file ddumpable.hpp.

Constructor & Destructor Documentation

◆ CDebugDumpFormatterText()

CDebugDumpFormatterText::CDebugDumpFormatterText ( ostream &  out)

Definition at line 288 of file ddumpable.cpp.

◆ ~CDebugDumpFormatterText()

CDebugDumpFormatterText::~CDebugDumpFormatterText ( void  )
virtual

Definition at line 293 of file ddumpable.cpp.

Member Function Documentation

◆ EndBundle()

void CDebugDumpFormatterText::EndBundle ( unsigned int  level,
const string bundle 
)
virtual

Implements CDebugDumpFormatter.

Definition at line 311 of file ddumpable.cpp.

References m_Out, x_IndentLine(), and x_InsertPageBreak().

◆ EndFrame()

void CDebugDumpFormatterText::EndFrame ( unsigned int  level,
const string frame 
)
virtual

Implements CDebugDumpFormatter.

Definition at line 335 of file ddumpable.cpp.

References m_Out.

◆ PutValue()

void CDebugDumpFormatterText::PutValue ( unsigned int  level,
const string name,
const string value,
EValueType  type,
const string comment 
)
virtual

Implements CDebugDumpFormatter.

Definition at line 342 of file ddumpable.cpp.

References CDebugDumpFormatter::eString, m_Out, rapidjson::value, and x_IndentLine().

◆ StartBundle()

bool CDebugDumpFormatterText::StartBundle ( unsigned int  level,
const string bundle 
)
virtual

Implements CDebugDumpFormatter.

Definition at line 297 of file ddumpable.cpp.

References m_Out, x_IndentLine(), and x_InsertPageBreak().

◆ StartFrame()

bool CDebugDumpFormatterText::StartFrame ( unsigned int  level,
const string frame 
)
virtual

Implements CDebugDumpFormatter.

Definition at line 325 of file ddumpable.cpp.

References m_Out, and x_IndentLine().

◆ x_IndentLine()

void CDebugDumpFormatterText::x_IndentLine ( unsigned int  level,
char  c = ' ',
unsigned int  len = 2 
)
private

Definition at line 362 of file ddumpable.cpp.

References len, m_Out, and string.

Referenced by EndBundle(), PutValue(), StartBundle(), and StartFrame().

◆ x_InsertPageBreak()

void CDebugDumpFormatterText::x_InsertPageBreak ( const string title = kEmptyStr,
char  c = '=',
unsigned int  len = 78 
)
private

Definition at line 369 of file ddumpable.cpp.

References len, m_Out, and tmp.

Referenced by EndBundle(), and StartBundle().

Member Data Documentation

◆ m_Out

ostream& CDebugDumpFormatterText::m_Out
private

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:22 2024 by modify_doxy.py rev. 669887