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

early report writer providing character-based output. More...

#include <oofrw.h>

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

Public Types

enum  ReportStyles { pageWise, columnar }
 

Public Member Functions

char * copyStr (const char *theString)
 
 dbRep (const dbRepSizer &sizer, const dbView &fields, const ReportStyles style)
 
 dbRep (const dbRepSizer &sizer, const dbRepColWidths colWidths, const dbView &fields, const ReportStyles style)
 
virtual void describe (std::ostream &) const
 Provide human-readable information about object. More...
 
virtual void draw (std::ostream &)=0
 
void extract (std::ostream &)
 
virtual void formatForCharStream ()=0
 
bool hidden () const
 
void hide (bool hideIt=true)
 
virtual oofString name () const
 
const OOF_StringreportTitle ()
 
void setStyle (const ReportStyles)
 
virtual ~dbRep ()
 

Protected Attributes

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

Detailed Description

early report writer providing character-based output.

Only reports a single dbTable - no nested data or graphs. Has interesting pageWise format which puts field names on left of wrapped field data. Still useful for quick dump of a table, or writing simple HTML.

Definition at line 228 of file oofrw.h.

Constructor & Destructor Documentation

dbRep::dbRep ( const dbRepSizer sizer,
const dbView fields,
const ReportStyles  style 
)
inline

Definition at line 232 of file oofrw.h.

dbRep::dbRep ( const dbRepSizer sizer,
const dbRepColWidths  colWidths,
const dbView fields,
const ReportStyles  style 
)
inline

Definition at line 238 of file oofrw.h.

virtual dbRep::~dbRep ( )
inlinevirtual

Definition at line 246 of file oofrw.h.

Member Function Documentation

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

Definition at line 197 of file oofrw.cpp.

Referenced by dbRepChar::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().

virtual void dbRep::draw ( std::ostream &  )
pure virtual

Implemented in dbRepChar, dbRepHTMLTable, and dbRepHTML.

void dbRep::extract ( std::ostream &  )
virtual void dbRep::formatForCharStream ( )
pure virtual

Implemented in dbRepChar, dbRepHTMLTable, and dbRepHTML.

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 ( )
inline

Definition at line 307 of file oofrw.h.

References dbRepSizer::mReportTitle, and mSizer.

void dbRep::setStyle ( const ReportStyles  style)

Definition at line 210 of file oofrw.cpp.

References mReportStyle.

Member Data Documentation

bool dbRep::mBuilt
protected

Definition at line 265 of file oofrw.h.

Referenced by dbRepChar::draw(), and dbRepChar::formatForCharStream().

dbRepColWidths dbRep::mColWidths
protected
dbView dbRep::mFields
protected
bool OOF_PublicBase::mHidden
protectedinherited

Definition at line 61 of file oof1.h.

ReportStyles dbRep::mReportStyle
protected
dbRepSizer dbRep::mSizer
protected

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