col_handling_rep Class Reference

#include <col_handling_rep.hpp>

Inheritance diagram for col_handling_rep:

Inheritance graph
[legend]
Collaboration diagram for col_handling_rep:

Collaboration graph
[legend]

List of all members.

Public Types

enum  events {
  commence_event, prerow_event, field_event, postfield_event,
  postrow_event, complete_event, commence_event, prerow_event,
  field_event, postfield_event, postrow_event, complete_event
}
enum  events {
  commence_event, prerow_event, field_event, postfield_event,
  postrow_event, complete_event, commence_event, prerow_event,
  field_event, postfield_event, postrow_event, complete_event
}

Public Member Functions

 col_handling_rep (ostream &sc)
string paramFilter (ocString sql, string tag, ocString rep)
string filter (string &sql)
bool getData (string sql)
void addColumnHandlers (long long Report_Id)
void addFormat (void)
string formatField (int iField)
string formatValue (int iField, string val)
ocString fpart (string key, int iField, bool doReplace=true)
void addHandler (void)
void addHandler (colHandler *hndlr)
virtual ~col_handling_rep ()
virtual void sendField (int iField, ocString &td)
virtual string getHeadCell (int iField, ocString &th)
virtual void derived_commence_event (void)
virtual void derived_prerow_event (void)
virtual void derived_postrow_event (void)
virtual void derived_complete_event (void)
openRSgetRS ()
 col_handling_rep (ostream &sc)
string paramFilter (ocString sql, string tag, ocString rep)
string filter (string &sql)
bool getData (string sql)
void addColumnHandlers (long long Report_Id)
void addFormat (void)
string formatField (int iField)
string formatValue (int iField, string val)
ocString fpart (string key, int iField, bool doReplace=true)
void addHandler (void)
void addHandler (colHandler *hndlr)
virtual ~col_handling_rep ()
virtual void sendField (int iField, ocString &td)
virtual string getHeadCell (int iField, ocString &th)
virtual void derived_commence_event (void)
virtual void derived_prerow_event (void)
virtual void derived_postrow_event (void)
virtual void derived_complete_event (void)
openRSgetRS ()

Public Attributes

colHandlerMap colHandlers
formatMap colFormats
int fieldCount
int Formatting_Modulus
int Items_Per_Page
bool doParamFilter

Private Attributes

ocString handlerSQL

Friends

class colHandler


Detailed Description

col_handling_rep

handles reports that perform special operations on columns like grouping. summing and specialized formatting.

Definition at line 172 of file col_handling_rep.hpp.


Member Enumeration Documentation

events described as follows:

  • commence_event - event just before any data is displayed
  • prerow_event - Before any data on the current row is displayed want to check for groups and sums on the previous rows
  • field_event - The field on a row of data is being rendered, give the handler an opportunity to do this
  • postfield_event - After current field is displayed
  • postrow_event - After all data on the row is displayed
  • complete_event - After all data is displayed
Enumerator:
commence_event 
prerow_event 
field_event 
postfield_event 
postrow_event 
complete_event 
commence_event 
prerow_event 
field_event 
postfield_event 
postrow_event 
complete_event 

Definition at line 190 of file col_handling_rep.hpp.

events described as follows:

  • commence_event - event just before any data is displayed
  • prerow_event - Before any data on the current row is displayed want to check for groups and sums on the previous rows
  • field_event - The field on a row of data is being rendered, give the handler an opportunity to do this
  • postfield_event - After current field is displayed
  • postrow_event - After all data on the row is displayed
  • complete_event - After all data is displayed
Enumerator:
commence_event 
prerow_event 
field_event 
postfield_event 
postrow_event 
complete_event 
commence_event 
prerow_event 
field_event 
postfield_event 
postrow_event 
complete_event 

Definition at line 190 of file col_handling_rep.hpp.


Constructor & Destructor Documentation

col_handling_rep::col_handling_rep ( ostream &  sc  )  [inline]

Definition at line 199 of file col_handling_rep.hpp.

virtual col_handling_rep::~col_handling_rep (  )  [inline, virtual]

Definition at line 342 of file col_handling_rep.hpp.

References colFormats, and colHandlers.

col_handling_rep::col_handling_rep ( ostream &  sc  )  [inline]

Definition at line 199 of file col_handling_rep.hpp.

virtual col_handling_rep::~col_handling_rep (  )  [inline, virtual]

Definition at line 342 of file col_handling_rep.hpp.

References colFormats, and colHandlers.


Member Function Documentation

string col_handling_rep::paramFilter ( ocString  sql,
string  tag,
ocString  rep 
) [inline]

string col_handling_rep::filter ( string &  sql  )  [inline]

Definition at line 230 of file col_handling_rep.hpp.

References Session_Obj::GetData(), paramFilter(), and ocString::parse().

Referenced by getData().

bool col_handling_rep::getData ( string  sql  )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 248 of file col_handling_rep.hpp.

References doParamFilter, filter(), rep_base::getData(), and rep_base::webIO.

Referenced by reform_base::doSubReport(), ReportEmitter::genReport(), and main().

void col_handling_rep::addColumnHandlers ( long long  Report_Id  )  [inline]

void col_handling_rep::addFormat ( void   )  [inline]

Definition at line 272 of file col_handling_rep.hpp.

References colFormats, basicField::format(), openRS::getField(), and read_base::rs.

Referenced by addColumnHandlers().

string col_handling_rep::formatField ( int  iField  )  [inline]

Definition at line 294 of file col_handling_rep.hpp.

References colFormats, basicField::format(), openRS::getField(), and read_base::rs.

Referenced by sendField().

string col_handling_rep::formatValue ( int  iField,
string  val 
) [inline]

Definition at line 308 of file col_handling_rep.hpp.

References colFormats.

Referenced by avgHandler::operator()(), and sumHandler::operator()().

ocString col_handling_rep::fpart ( string  key,
int  iField,
bool  doReplace = true 
) [inline]

void col_handling_rep::addHandler ( void   ) 

Definition at line 1059 of file col_handling_rep.hpp.

References basicField::format(), openRS::getField(), and read_base::rs.

Referenced by addColumnHandlers().

void col_handling_rep::addHandler ( colHandler hndlr  )  [inline]

Definition at line 337 of file col_handling_rep.hpp.

References colHandlers, and colHandler::column().

virtual void col_handling_rep::sendField ( int  iField,
ocString td 
) [inline, virtual]

virtual string col_handling_rep::getHeadCell ( int  iField,
ocString th 
) [inline, virtual]

virtual void col_handling_rep::derived_commence_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 406 of file col_handling_rep.hpp.

References colHandlers, commence_event, fieldCount, openRS::getFieldCount(), and read_base::rs.

virtual void col_handling_rep::derived_prerow_event ( void   )  [inline, virtual]

virtual void col_handling_rep::derived_postrow_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 446 of file col_handling_rep.hpp.

References colHandlers, fieldCount, postrow_event, and rep_base::webIO.

virtual void col_handling_rep::derived_complete_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 461 of file col_handling_rep.hpp.

References colHandlers, complete_event, fieldCount, rep_base::part(), ocString::replace(), and rep_base::webIO.

openRS& col_handling_rep::getRS (  )  [inline]

string col_handling_rep::paramFilter ( ocString  sql,
string  tag,
ocString  rep 
) [inline]

string col_handling_rep::filter ( string &  sql  )  [inline]

Definition at line 230 of file col_handling_rep.hpp.

References Session_Obj::GetData(), paramFilter(), and ocString::parse().

bool col_handling_rep::getData ( string  sql  )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 248 of file col_handling_rep.hpp.

References doParamFilter, filter(), rep_base::getData(), and rep_base::webIO.

void col_handling_rep::addColumnHandlers ( long long  Report_Id  )  [inline]

void col_handling_rep::addFormat ( void   )  [inline]

string col_handling_rep::formatField ( int  iField  )  [inline]

string col_handling_rep::formatValue ( int  iField,
string  val 
) [inline]

Definition at line 308 of file col_handling_rep.hpp.

References colFormats.

ocString col_handling_rep::fpart ( string  key,
int  iField,
bool  doReplace = true 
) [inline]

void col_handling_rep::addHandler ( void   ) 

void col_handling_rep::addHandler ( colHandler hndlr  )  [inline]

Definition at line 337 of file col_handling_rep.hpp.

References colHandlers, and colHandler::column().

virtual void col_handling_rep::sendField ( int  iField,
ocString td 
) [inline, virtual]

virtual string col_handling_rep::getHeadCell ( int  iField,
ocString th 
) [inline, virtual]

virtual void col_handling_rep::derived_commence_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 406 of file col_handling_rep.hpp.

References colHandlers, commence_event, fieldCount, openRS::getFieldCount(), and read_base::rs.

virtual void col_handling_rep::derived_prerow_event ( void   )  [inline, virtual]

virtual void col_handling_rep::derived_postrow_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 446 of file col_handling_rep.hpp.

References colHandlers, fieldCount, postrow_event, and rep_base::webIO.

virtual void col_handling_rep::derived_complete_event ( void   )  [inline, virtual]

Reimplemented from rep_base.

Definition at line 461 of file col_handling_rep.hpp.

References colHandlers, complete_event, fieldCount, rep_base::part(), ocString::replace(), and rep_base::webIO.

openRS& col_handling_rep::getRS (  )  [inline]

Definition at line 514 of file col_handling_rep.hpp.

References read_base::rs.


Friends And Related Function Documentation

colHandler [friend]

Definition at line 519 of file col_handling_rep.hpp.


Member Data Documentation

Definition at line 175 of file col_handling_rep.hpp.

Referenced by addColumnHandlers().

Definition at line 193 of file col_handling_rep.hpp.

Referenced by addFormat(), formatField(), formatValue(), fpart(), and ~col_handling_rep().

Definition at line 195 of file col_handling_rep.hpp.

Referenced by reform_base::doSubReport(), and ReportEmitter::genReport().

Definition at line 196 of file col_handling_rep.hpp.

Referenced by derived_prerow_event().

Definition at line 197 of file col_handling_rep.hpp.

Referenced by ReportEmitter::genReport(), and getData().


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

Generated on Sat Aug 15 12:48:11 2009 for w3systemsDevelopment by  doxygen 1.5.5