OOFILE  1.9
Public Types | Public Member Functions | Protected Attributes | List of all members

Write simple text report wrapped with spaces and newlines. More...

#include <oofrw.h>

Inheritance diagram for dbRepChar:
Inheritance graph
[legend]
Collaboration diagram for dbRepChar:
Collaboration graph
[legend]

Public Types

enum  ReportStyles { pageWise, columnar }
 

Public Member Functions

char * copyStr (const char *theString)
 
 dbRepChar (const dbRepSizer &sizer, const dbView &fields, const ReportStyles style=columnar)
 
 dbRepChar (const dbRepSizer &sizer, const dbRepColWidths colWidths, const dbView &fields, const ReportStyles style=columnar)
 
virtual void describe (std::ostream &) const
 Provide human-readable information about object. More...
 
virtual void draw (std::ostream &)
 
void drawColumnar (std::ostream &)
 
void drawHeader (std::ostream &)
 
void drawPageWise (std::ostream &)
 
unsigned int drawWrappedChars (unsigned int line, unsigned int hPos, unsigned int width, char **theString)
 
void extract (std::ostream &)
 
virtual void formatForCharStream ()
 
bool hidden () const
 
void hide (bool hideIt=true)
 
virtual oofString name () const
 
const OOF_StringreportTitle ()
 
void setStyle (const ReportStyles)
 
virtual ~dbRepChar ()
 

Protected Attributes

bool mBuilt
 
dbRepColWidths mColWidths
 
dbView mFields
 
bool mHidden
 
ReportStyles mReportStyle
 
dbRepSizer mSizer
 

Detailed Description

Write simple text report wrapped with spaces and newlines.

Definition at line 273 of file oofrw.h.

Constructor & Destructor Documentation

dbRepChar::dbRepChar ( const dbRepSizer sizer,
const dbView fields,
const ReportStyles  style = columnar 
)
inline

Definition at line 276 of file oofrw.h.

dbRepChar::dbRepChar ( const dbRepSizer sizer,
const dbRepColWidths  colWidths,
const dbView fields,
const ReportStyles  style = columnar 
)
inline

Definition at line 280 of file oofrw.h.

virtual dbRepChar::~dbRepChar ( )
inlinevirtual

Definition at line 285 of file oofrw.h.

Member Function Documentation

char * dbRep::copyStr ( const char *  theString)
inherited

Definition at line 197 of file oofrw.cpp.

Referenced by drawPageWise().

void OOF_PublicBase::describe ( std::ostream &  ) const
virtualinherited

Provide human-readable information about object.

Overriden to provide much more detail particularly for dbTable::describe() which provides full schema.

Reimplemented in dbConnect, dbTable, dbFixedBinary, dbChar, dbField, and dbRelRefBase.

Definition at line 342 of file oof1.cpp.

References OOF_PublicBase::name().

Referenced by OOF_Dictionary::describeVisible().

void dbRepChar::draw ( std::ostream &  )
virtual
void dbRepChar::drawColumnar ( std::ostream &  )
void dbRepChar::drawHeader ( std::ostream &  )
void dbRepChar::drawPageWise ( std::ostream &  )
unsigned int dbRepChar::drawWrappedChars ( unsigned int  line,
unsigned int  hPos,
unsigned int  width,
char **  theString 
)

Definition at line 317 of file oofrw.cpp.

References dbRepLine::drawNCharsAt(), dbRepPage::mNumLines, and dbRepPage::mPageMap.

Referenced by drawColumnar(), and drawPageWise().

void dbRep::extract ( std::ostream &  )
inherited
void dbRepChar::formatForCharStream ( )
virtual
bool OOF_PublicBase::hidden ( ) const
inlineinherited

Definition at line 51 of file oof1.h.

Referenced by OOF_Dictionary::EntryMatchesVisibility().

void OOF_PublicBase::hide ( bool  hideIt = true)
inlineinherited

Definition at line 52 of file oof1.h.

oofString OOF_PublicBase::name ( ) const
virtualinherited

Reimplemented in dbConnect, dbTable, OOF_adornerHolder, and dbField.

Definition at line 349 of file oof1.cpp.

Referenced by OOF_PublicBase::describe().

const OOF_String & dbRep::reportTitle ( )
inlineinherited

Definition at line 307 of file oofrw.h.

References dbRepSizer::mReportTitle, and dbRep::mSizer.

void dbRep::setStyle ( const ReportStyles  style)
inherited

Definition at line 210 of file oofrw.cpp.

References dbRep::mReportStyle.

Member Data Documentation

bool dbRep::mBuilt
protectedinherited

Definition at line 265 of file oofrw.h.

Referenced by draw(), and formatForCharStream().

dbRepColWidths dbRep::mColWidths
protectedinherited

Definition at line 264 of file oofrw.h.

Referenced by drawColumnar(), drawHeader(), drawPageWise(), and formatForCharStream().

dbView dbRep::mFields
protectedinherited

Definition at line 262 of file oofrw.h.

Referenced by drawColumnar(), drawHeader(), drawPageWise(), dbRep::extract(), and formatForCharStream().

bool OOF_PublicBase::mHidden
protectedinherited

Definition at line 61 of file oof1.h.

ReportStyles dbRep::mReportStyle
protectedinherited

Definition at line 263 of file oofrw.h.

Referenced by draw(), drawHeader(), formatForCharStream(), and dbRep::setStyle().

dbRepSizer dbRep::mSizer
protectedinherited

Definition at line 261 of file oofrw.h.

Referenced by drawColumnar(), drawPageWise(), formatForCharStream(), and dbRep::reportTitle().


The documentation for this class was generated from the following files: