/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Db/ResultHandle.h

Go to the documentation of this file.
00001 // $Header: /bes/bes/BossCvs/Calibration/rdbModel/rdbModel/Db/ResultHandle.h,v 1.2 2008/04/09 02:57:28 huangb Exp $
00002 #ifndef RDBMODEL_RESULTHANDLE_H
00003 #define RDBMODEL_RESULTHANDLE_H
00004 #include <vector>
00005 #include <string>
00006 
00007 
00008 namespace rdbModel{
00009 
00015   class ResultHandle {
00016   public:
00017     ResultHandle() {};
00018     virtual ~ResultHandle() {};
00019 
00021     virtual unsigned int getNRows() const = 0;
00022 
00026     virtual bool getRow(std::vector<std::string>& fields, unsigned int i = 0,
00027                         bool clear = true) =0;
00028 
00029     virtual bool getRowCon(char* par,unsigned long* treesize,unsigned int *runFrm,
00030                            unsigned int *runTo,unsigned int i = 0, bool clear=true) = 0;   
00038     virtual bool getRowPtrs(std::vector<std::string*>& fields, 
00039                             unsigned int i = 0, bool clear=true) = 0;
00040 
00041     static void cleanFieldPtrs(std::vector<std::string*>& fields);
00042     /*
00043     // Return specified row in results as a string
00044     virtual bool getRowString(std::string& row, unsigned int iRow=0) const = 0;
00045 
00046       Return vector of rows
00047          @param rows     to hold returned data
00048          @param iRow     starting row
00049          @param maxRow   maximum number of rows requested.  0 means "all"
00050          @param clear    if true, clear @a rows before storing new data
00051          @return         status
00052     
00053     virtual bool getRowStrings(std::vector<std::string>& rows, 
00054                                unsigned int iRow=0, unsigned int maxRow=0, 
00055                                bool clear=true) const = 0;
00056     */
00057   };
00058 }
00059 #endif

Generated on Tue Nov 29 22:57:56 2016 for BOSS_7.0.2 by  doxygen 1.4.7