DbiDemoData4 Class Reference

#include <DbiDemoData4.h>

Inheritance diagram for DbiDemoData4:
DbiTableRow

List of all members.

Public Types

enum  { dataSize = 50 }

Public Member Functions

 DbiDemoData4 (Int_t base=0)
virtual ~DbiDemoData4 ()
Bool_t IsValid () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Member Functions

 DbiDemoData4 (const DbiDemoData4 &from)

Private Attributes

Int_t fData [dataSize]

Detailed Description

Definition at line 22 of file DbiDemoData4.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
dataSize 

Definition at line 31 of file DbiDemoData4.h.

00031 { dataSize = 50 };


Constructor & Destructor Documentation

DbiDemoData4::DbiDemoData4 ( Int_t  base = 0  ) 

Definition at line 52 of file DbiDemoData4.cxx.

References dataSize, fData, and LEA_CTOR.

00052                                      {
00053 
00054 //
00055 //
00056 //  Purpose:  Default ctor.
00057 //
00058 //  Arguments: 
00059 //    base         in    Starting value for data.
00060 //
00061 
00062   LEA_CTOR;
00063   fData[0] = base;
00064   for ( int elem =1; elem < dataSize; ++elem ) fData[elem] = 1 + fData[elem-1];
00065 }

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

Definition at line 29 of file DbiDemoData4.h.

References LEA_DTOR.

00029 { LEA_DTOR; };

DbiDemoData4::DbiDemoData4 ( const DbiDemoData4 from  )  [inline, private]

Definition at line 48 of file DbiDemoData4.h.

References LEA_CTOR.

00049     : DbiTableRow(from) { LEA_CTOR; *this = from; }


Member Function Documentation

virtual DbiTableRow* DbiDemoData4::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 36 of file DbiDemoData4.h.

00036                                               { 
00037                                              return new DbiDemoData4; }

void DbiDemoData4::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 83 of file DbiDemoData4.cxx.

References fData.

00084                                                           {
00085 //
00086 //
00087 //  Purpose:  Fill oject from Result Set
00088 //
00089 //  Arguments: 
00090 //    rs           in    Result Set used to fill object
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 Fill object from current row of Result Set.
00102 
00103 //  Program Notes:-
00104 //  =============
00105 
00106 //  None.
00107 
00108   for (int elem =0; elem < dataSize; ++elem ) rs >> fData[elem];
00109    
00110 }

Bool_t DbiDemoData4::IsValid (  )  const

Definition at line 69 of file DbiDemoData4.cxx.

References dataSize, and fData.

00069                                    {
00070 //
00071 //
00072 //  Purpose:  Validate object.
00073 
00074   Bool_t ok = kTRUE;
00075   for ( int elem =1; elem < dataSize; ++elem ) 
00076     if ( fData[elem] != 1 + fData[elem-1] ) ok = kFALSE;
00077   return ok;
00078 
00079 }

void DbiDemoData4::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 114 of file DbiDemoData4.cxx.

References dataSize, and fData.

00115                                                                  {
00116 //
00117 //
00118 //  Purpose:  Stream object to output row stream
00119 //
00120 //  Arguments: 
00121 //    ors          in     Output row stream.
00122 //    vrec         in    Associated validity record (or 0 if filling
00123 //                                                    DbiValidityRec)
00124 //
00125 //  Return:    
00126 //
00127 //  Contact:   N. West
00128 //
00129 //  Specification:-
00130 //  =============
00131 //
00132 //  o  Stream object to output row stream.
00133 
00134 //  Program Notes:-
00135 //  =============
00136 
00137 //  None.
00138 
00139   for (int elem =0; elem < dataSize; ++elem ) ors <<  fData[elem];
00140    
00141 }


Member Data Documentation

Int_t DbiDemoData4::fData[dataSize] [private]

Definition at line 53 of file DbiDemoData4.h.

Referenced by DbiDemoData4(), Fill(), IsValid(), and Store().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1