Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

ResultSet.h

00001 /*
00002  *  Copyright (c) 2004 on behalf of the EU EGEE Project:
00003  *  The European Organization for Nuclear Research (CERN),
00004  *  Istituto Nazionale di Fisica Nucleare (INFN), Italy
00005  *  Datamat Spa, Italy
00006  *  Centre National de la Recherche Scientifique (CNRS), France
00007  *  CS Systeme d'Information (CSSI), France
00008  *  Royal Institute of Technology, Center for Parallel Computers (KTH-PDC), Sweden
00009  *  Universiteit van Amsterdam (UvA), Netherlands
00010  *  University of Helsinki (UH.HIP), Finland
00011  *  University of Bergen (UiB), Norway
00012  *  Council for the Central Laboratory of the Research Councils (CCLRC), United Kingdom
00013  */
00014 #ifndef RESULTSET_H
00015 #define RESULTSET_H
00016 #include "rgma/StringList.h"
00017 #include "rgma/RGMAWarning.h"
00018 #include "rgma/Tuple.h"
00019 #include "rgma/RGMAException.h"
00020 #include "rgma/ResultSetMetaData.h"
00021 #include <vector>
00022 #include <ostream>
00023 
00024 namespace glite
00025 {
00026     namespace rgma
00027     {
00032         class ResultSet
00033         {
00034             public:
00035 
00036                 virtual ~ResultSet();
00037 
00045                 bool endOfResults();
00046 
00054                 RGMAWarning getWarning();
00062                 typedef std::vector<Tuple>::iterator iterator;
00068                 iterator begin();
00074                 iterator end();
00075 
00080                 int size();
00081 
00082                 ResultSet();
00083 
00084                 ResultSet(ResultSetMetaData& metaData);
00085 
00086             protected:
00087                 bool m_endOfResults;
00088                 std::vector<Tuple> m_tuples;
00089                 ResultSetMetaData m_metaData;
00090                 RGMAWarning m_warning;
00091 
00097                 //virtual void setWarning(RGMAWarning warning);
00103                 //virtual void setEndOfResults( bool endOfResults);
00109                 //virtual void addRow(Tuple tuple);
00115                 //virtual void setMetaData( ResultSetMetaData& metaData );
00116 
00117             private:
00118 
00119         };
00120         std::ostream& operator<<( std::ostream& stream, ResultSet rs );
00121     }
00122 }
00123 #endif                                            // RESULTSET_H

Generated on Thu May 11 19:23:43 2006 for glite-rgma-api-cpp by doxygen 1.3.5