Concept I/O buffer for a row of a table. More...
#include <TDbiRowStream.hxx>
Public Member Functions | |
TDbiRowStream (const TDbiTableMetaData *metaData) | |
virtual | ~TDbiRowStream () |
virtual const TDbiFieldType & | ColFieldType (UInt_t col) const |
virtual string | ColName (UInt_t col) const |
virtual const TDbiFieldType & | CurColFieldType () const |
virtual string | CurColName () const |
virtual UInt_t | CurColNum () const |
Bool_t | HasEpoch () const |
Bool_t | HasRowCounter () const |
Bool_t | IsVLDTable () const |
virtual UInt_t | NumCols () const |
virtual string | TableName () const |
virtual string | TableNameTc () const |
virtual const TDbiTableMetaData * | MetaData () const |
virtual void | DecrementCurCol () |
virtual void | IncrementCurCol () |
Protected Member Functions | |
virtual void | ClearCurCol () |
Private Attributes | |
UShort_t | fCurCol |
Current column in query (1..fNumCols). | |
Bool_t | fHasRowCounter |
True if main table has ROW_COUNTER as second column. | |
const TDbiTableMetaData * | fMetaData |
Owned by TDbiTableProxy. | |
Bool_t | fIsVLDTable |
True if reading data for a *VLD table. |
Concept I/O buffer for a row of a table.
Purpose This forms the base class for TDbiInRowStream (input) and TDbiWriter (input) Contact: A.Finch@lancaster.ac.uk
Definition at line 29 of file TDbiRowStream.hxx.
TDbiRowStream::TDbiRowStream | ( | const TDbiTableMetaData * | metaData | ) |
TDbiRowStream::~TDbiRowStream | ( | ) | [virtual] |
Definition at line 84 of file TDbiRowStream.cxx.
References SK_DBI_Trace.
00084 { 00085 // 00086 // 00087 // Purpose: Destructor 00088 // 00089 // Arguments: 00090 // None. 00091 // 00092 // Return: n/a 00093 // 00094 // Contact: N. West 00095 // 00096 // Specification:- 00097 // ============= 00098 // 00099 // o Destroy RowStream. 00100 00101 00102 // Program Notes:- 00103 // ============= 00104 00105 // None. 00106 00107 00108 SK_DBI_Trace( "Destroying TDbiRowStream" << " "); 00109 00110 }
virtual void TDbiRowStream::ClearCurCol | ( | ) | [inline, protected, virtual] |
Definition at line 64 of file TDbiRowStream.hxx.
References fCurCol.
Referenced by TDbiOutRowStream::Clear(), and TDbiInRowStream::FetchRow().
00064 { fCurCol = 1; }
const TDbiFieldType & TDbiRowStream::ColFieldType | ( | UInt_t | col | ) | const [virtual] |
Definition at line 114 of file TDbiRowStream.cxx.
References TDbiTableMetaData::ColFieldType(), and fMetaData.
00114 { 00115 // 00116 // 00117 // Purpose: Return specified column type, if defined 00118 // 00119 // Arguments: None. 00120 00121 return fMetaData->ColFieldType(col); 00122 }
string TDbiRowStream::ColName | ( | UInt_t | col | ) | const [virtual] |
Definition at line 125 of file TDbiRowStream.cxx.
References TDbiTableMetaData::ColName(), and fMetaData.
Referenced by TDbiInRowStream::AsString().
00125 { 00126 // 00127 // 00128 // Purpose: Return specified column name, if defined 00129 00130 return fMetaData->ColName(col); 00131 }
const TDbiFieldType & TDbiRowStream::CurColFieldType | ( | ) | const [virtual] |
Definition at line 134 of file TDbiRowStream.cxx.
References TDbiTableMetaData::ColFieldType(), fCurCol, and fMetaData.
Referenced by TDbiConfigSet::Fill(), TDbiInRowStream::LoadCurValue(), TDbiOutRowStream::Store(), and TDbiOutRowStream::StoreDefaultIfInvalid().
00134 { 00135 // 00136 // 00137 // Purpose: Return current column type, if defined 00138 // 00139 // Arguments: None. 00140 // 00141 // Return: Current column type, if defined. Unknown otherwise. 00142 // 00143 // Contact: N. West 00144 // 00145 // Specification:- 00146 // ============= 00147 // 00148 // o Current column name, if defined. unknown otherwise. 00149 00150 // Program Notes:- 00151 // ============= 00152 00153 // None. 00154 00155 return fMetaData->ColFieldType(fCurCol); 00156 }
string TDbiRowStream::CurColName | ( | ) | const [virtual] |
Definition at line 160 of file TDbiRowStream.cxx.
References TDbiTableMetaData::ColName(), fCurCol, and fMetaData.
Referenced by ClassImp(), TDbiConfigSet::Fill(), and TDbiOutRowStream::StoreDefaultIfInvalid().
00160 { 00161 // 00162 // 00163 // Purpose: Return current column name, if defined 00164 // 00165 // Arguments: None. 00166 // 00167 // Return: Current column name, if defined. "Undefined" otherwise. 00168 // 00169 // Contact: N. West 00170 // 00171 // Specification:- 00172 // ============= 00173 // 00174 // o Current column name, if defined. "Undefined" otherwise. 00175 00176 // Program Notes:- 00177 // ============= 00178 00179 // None. 00180 00181 return fMetaData->ColName(fCurCol); 00182 }
virtual UInt_t TDbiRowStream::CurColNum | ( | ) | const [inline, virtual] |
Definition at line 45 of file TDbiRowStream.hxx.
References fCurCol.
Referenced by TDbiInRowStream::AsString(), TDbiInRowStream::CurColExists(), TDbiInRowStream::CurColString(), TDbiOutRowStream::IsComplete(), TDbiInRowStream::LoadCurValue(), TDbiOutRowStream::Store(), and TDbiOutRowStream::StoreDefaultIfInvalid().
00045 { return fCurCol;}
virtual void TDbiRowStream::DecrementCurCol | ( | ) | [inline, virtual] |
Definition at line 56 of file TDbiRowStream.hxx.
References fCurCol.
Referenced by ClassImp().
Bool_t TDbiRowStream::HasEpoch | ( | ) | const |
Definition at line 213 of file TDbiRowStream.cxx.
References fMetaData, and TDbiTableMetaData::HasEpoch().
Referenced by TDbiValidityRec::Fill(), and TDbiValidityRec::Store().
Bool_t TDbiRowStream::HasRowCounter | ( | ) | const [inline] |
Definition at line 47 of file TDbiRowStream.hxx.
References fHasRowCounter.
00047 { return fHasRowCounter; }
virtual void TDbiRowStream::IncrementCurCol | ( | ) | [inline, virtual] |
Definition at line 60 of file TDbiRowStream.hxx.
References fCurCol.
Referenced by TDbiInRowStream::AsString(), ClassImp(), TDbiConfigSet::Fill(), and TDbiOutRowStream::Store().
00060 { ++fCurCol; }
Bool_t TDbiRowStream::IsVLDTable | ( | ) | const [inline] |
Definition at line 48 of file TDbiRowStream.hxx.
References fIsVLDTable.
Referenced by ClassImp().
00048 { return fIsVLDTable; }
virtual const TDbiTableMetaData* TDbiRowStream::MetaData | ( | ) | const [inline, virtual] |
Definition at line 53 of file TDbiRowStream.hxx.
References fMetaData.
Referenced by TDbiInRowStream::AsString(), and TDbiInRowStream::RowAsCsv().
00053 { return fMetaData; }
UInt_t TDbiRowStream::NumCols | ( | ) | const [virtual] |
Definition at line 186 of file TDbiRowStream.cxx.
References fMetaData, and TDbiTableMetaData::NumCols().
Referenced by TDbiInRowStream::CurColExists(), TDbiConfigSet::Fill(), TDbiOutRowStream::IsComplete(), and TDbiInRowStream::RowAsCsv().
00186 { 00187 // 00188 // 00189 // Purpose: Return the number of columns. 00190 // 00191 // Arguments: None. 00192 // 00193 // Return: the number of columns 00194 // 00195 // Contact: N. West 00196 // 00197 // Specification:- 00198 // ============= 00199 // 00200 // o Return the number of columns. 00201 00202 // Program Notes:- 00203 // ============= 00204 00205 // None. 00206 00207 return fMetaData->NumCols(); 00208 00209 }
string TDbiRowStream::TableName | ( | ) | const [virtual] |
Definition at line 219 of file TDbiRowStream.cxx.
References fMetaData, TDbiTableMetaData::TableName(), and UtilString::ToUpper().
00219 { 00220 // 00221 // 00222 // Purpose: Return table name in upper case. 00223 // 00224 00225 return UtilString::ToUpper(fMetaData->TableName()); 00226 }
string TDbiRowStream::TableNameTc | ( | ) | const [virtual] |
Definition at line 230 of file TDbiRowStream.cxx.
References fMetaData, and TDbiTableMetaData::TableName().
Referenced by TDbiInRowStream::AsString(), TDbiInRowStream::CurColExists(), TDbiOutRowStream::StoreDefaultIfInvalid(), and TDbiResultSet::TDbiResultSet().
00230 { 00231 // 00232 // 00233 // Purpose: Return table name in true case. 00234 00235 return fMetaData->TableName(); 00236 }
UShort_t TDbiRowStream::fCurCol [private] |
Current column in query (1..fNumCols).
Definition at line 72 of file TDbiRowStream.hxx.
Referenced by ClearCurCol(), CurColFieldType(), CurColName(), CurColNum(), DecrementCurCol(), and IncrementCurCol().
Bool_t TDbiRowStream::fHasRowCounter [private] |
True if main table has ROW_COUNTER as second column.
Definition at line 75 of file TDbiRowStream.hxx.
Referenced by HasRowCounter().
Bool_t TDbiRowStream::fIsVLDTable [private] |
True if reading data for a *VLD table.
Definition at line 81 of file TDbiRowStream.hxx.
Referenced by IsVLDTable().
const TDbiTableMetaData* TDbiRowStream::fMetaData [private] |
Owned by TDbiTableProxy.
Definition at line 78 of file TDbiRowStream.hxx.
Referenced by ColFieldType(), ColName(), CurColFieldType(), CurColName(), HasEpoch(), MetaData(), NumCols(), TableName(), and TableNameTc().