00001 00002 // $Id: DbiDemoData2.cxx,v 1.5 2004/10/14 12:47:44 west Exp $ 00003 // 00004 // DbiDemoData2 00005 // 00006 // Package: Dbi (Database Interface). 00007 00008 // Begin_Html<img src="../../pedestrians.gif" align=center> 00009 // <a href="../source_warning.html">Warning for beginners</a>.<br> 00010 // Also see <a href="../../root_crib/index.html">The ROOT Crib</a> and 00011 // <a href="../index.html">The MINOS Class User Guide</a>End_Html 00012 // 00013 // N. West 02/2001 00014 // 00015 // Concept: A concrete data type corresponding to a single row in a 00016 // database table of aggregated data. 00017 // 00018 // Purpose: Example type for test and demonstration purposes. 00019 // 00021 00022 #include "DatabaseInterface/test/DbiDemoData2.h" 00023 #include "MessageService/MsgService.h" 00024 #include "DatabaseInterface/DbiResultSet.h" 00025 #include "DatabaseInterface/DbiValidityRec.h" 00026 00027 ClassImp(DbiDemoData2) 00028 00029 00030 // Definition of static data members 00031 // ********************************* 00032 00033 CVSID("$Id: DbiDemoData2.cxx,v 1.5 2004/10/14 12:47:44 west Exp $\n \ 00034 CVSID_DBIRESULTPTR "); 00035 00036 // Instantiate associated Result Pointer and Writer classes. 00037 // ******************************************************** 00038 00039 #include "DatabaseInterface/DbiResultPtr.tpl" 00040 template class DbiResultPtr<DbiDemoData2>; 00041 00042 #include "DatabaseInterface/DbiWriter.tpl" 00043 template class DbiWriter<DbiDemoData2>; 00044 00045 // Definition of member functions (alphabetical order) 00046 // *************************************************** 00047 00048 00049 //..................................................................... 00050 00051 void DbiDemoData2::Fill(DbiResultSet& rs, 00052 const DbiValidityRec* /* vrec */) { 00053 // 00054 // 00055 // Purpose: Fill oject from Result Set 00056 // 00057 // Arguments: 00058 // rs in Result Set used to fill object 00059 // vrec in Associated validity record (or 0 if filling 00060 // DbiValidityRec) 00061 // 00062 // Return: 00063 // 00064 // Contact: N. West 00065 // 00066 // Specification:- 00067 // ============= 00068 // 00069 // o Fill object from current row of Result Set. 00070 00071 // Program Notes:- 00072 // ============= 00073 00074 // None. 00075 00076 00077 rs >> fAggregateNo >> fSubSystem >> fData; 00078 00079 } 00080 00081 //..................................................................... 00082 00083 void DbiDemoData2::Store(DbiOutRowStream& ors, 00084 const DbiValidityRec* /* vrec */) const { 00085 // 00086 // 00087 // Purpose: Stream object to output row stream 00088 // 00089 // Arguments: 00090 // ors in Output row stream. 00091 // vrec in Associated validity record (or 0 if filling 00092 // DbiValidityRec) 00093 // 00094 // Return: 00095 // 00096 // Contact: N. West 00097 // 00098 // Specification:- 00099 // ============= 00100 // 00101 // o Stream object to output row stream. 00102 00103 // Program Notes:- 00104 // ============= 00105 00106 // None. 00107 00108 ors << fAggregateNo << fSubSystem << fData; 00109 00110 } 00111 /* Template for New Member Function 00112 00113 //..................................................................... 00114 00115 DbiDemoData2:: { 00116 // 00117 // 00118 // Purpose: 00119 // 00120 // Arguments: 00121 // xxxxxxxxx in yyyyyy 00122 // 00123 // Return: 00124 // 00125 // Contact: N. West 00126 // 00127 // Specification:- 00128 // ============= 00129 // 00130 // o 00131 00132 // Program Notes:- 00133 // ============= 00134 00135 // None. 00136 00137 00138 } 00139 00140 */ 00141
1.3.9.1