Version: 9.12.0
InfoWriter Class Referenceabstract

Base info writer class. More...

Inheritance diagram for InfoWriter:

Public Member Functions

 InfoWriter (bool=false)
 
void write (const QString &, bool=false)
 
void write (const QString &, const QString &, bool=false)
 
void write (const QString &, int, bool=false)
 
void write (const QString &, double, bool=false)
 
void write (const QString &, const SMESH::XYZ &, bool=false)
 
virtual void indent ()
 
virtual void unindent ()
 
virtual void separator ()
 

Protected Member Functions

virtual void put (const QString &, const QString &, bool=false)=0
 

Protected Attributes

int myPrecision
 
bool myRecursive
 

Detailed Description

Base info writer class.

Constructor & Destructor Documentation

◆ InfoWriter()

InfoWriter::InfoWriter ( bool  r = false)

Member Function Documentation

◆ indent()

virtual void InfoWriter::indent ( )
virtual

Reimplemented in TreeWriter, and SimpleWriter.

Referenced by write(), and SMESHGUI_ElemInfo::writeInfo().

◆ put()

virtual void InfoWriter::put ( const QString &  ,
const QString &  ,
bool  = false 
)
protectedpure virtual

Implemented in TreeWriter, and SimpleWriter.

Referenced by write().

◆ separator()

virtual void InfoWriter::separator ( )
virtual

Reimplemented in SimpleWriter.

Referenced by SMESHGUI_ElemInfo::writeInfo().

◆ unindent()

virtual void InfoWriter::unindent ( )
virtual

Reimplemented in TreeWriter, and SimpleWriter.

Referenced by write(), and SMESHGUI_ElemInfo::writeInfo().

◆ write() [1/5]

void InfoWriter::write ( const QString &  key,
bool  emphasize = false 
)

◆ write() [2/5]

void InfoWriter::write ( const QString &  key,
const QString &  value,
bool  emphasize = false 
)

References put().

◆ write() [3/5]

void InfoWriter::write ( const QString &  key,
const SMESH::XYZ value,
bool  emphasize = false 
)

◆ write() [4/5]

void InfoWriter::write ( const QString &  key,
double  value,
bool  emphasize = false 
)

References myPrecision, and put().

◆ write() [5/5]

void InfoWriter::write ( const QString &  key,
int  value,
bool  emphasize = false 
)

References put().

Field Documentation

◆ myPrecision

int InfoWriter::myPrecision
protected

Referenced by InfoWriter(), and write().

◆ myRecursive

bool InfoWriter::myRecursive
protected

Referenced by write().