00001 /*************************************************************************** 00002 * 00003 * $Id: tableAcceptor.hh,v 1.6 2003/09/10 19:47:06 perev Exp $ 00004 * 00005 * Author: R. Jeff Porter 00006 *************************************************************************** 00007 * 00008 * Description: buffer for file I/O for StDbTable (e.g. XmlReader/Writer) 00009 * 00010 *************************************************************************** 00011 * 00012 * $Log: tableAcceptor.hh,v $ 00013 * Revision 1.6 2003/09/10 19:47:06 perev 00014 * ansi corrs 00015 * 00016 * Revision 1.5 2003/09/02 17:57:50 perev 00017 * gcc 3.2 updates + WarnOff 00018 * 00019 * Revision 1.4 2001/02/09 23:06:26 porter 00020 * replaced ostrstream into a buffer with ostrstream creating the 00021 * buffer. The former somehow clashed on Solaris with CC5 iostream (current .dev) 00022 * 00023 * Revision 1.3 1999/12/03 22:24:01 porter 00024 * expanded functionality used by online, fixed bug in 00025 * mysqlAccessor::getElementID(char*), & update StDbDataSet to 00026 * conform to changes in Xml reader & writer 00027 * 00028 * Revision 1.2 1999/09/30 02:06:15 porter 00029 * add StDbTime to better handle timestamps, modify SQL content (mysqlAccessor) 00030 * allow multiple rows (StDbTable), & Added the comment sections at top of 00031 * each header and src file 00032 * 00033 **************************************************************************/ 00034 #ifndef TABLEACCEPTOR_HH 00035 #define TABLEACCEPTOR_HH 00036 00037 00038 #include "typeAcceptor.hh" 00039 00040 class StDbTable; 00041 00042 class tableAcceptor : public typeAcceptor { 00043 00044 public: 00045 00046 virtual ~tableAcceptor(){}; 00047 00048 virtual void streamHeader(const char* name) = 0; 00049 virtual void streamTableName(const char* name) = 0; 00050 virtual void streamEndTableName() = 0; 00051 virtual void streamAccessor() = 0; 00052 virtual void endAccessor() = 0; 00053 virtual void streamRow(int row) = 0; 00054 virtual void streamEndRow() = 0; 00055 virtual void streamTail() = 0; 00056 00057 virtual void ioTable(StDbTable* table) = 0; 00058 00059 }; 00060 00061 #endif 00062 00063
1.5.9