00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00103
00109
00115
00116
00117 private:
00118
00119 };
00120 std::ostream& operator<<( std::ostream& stream, ResultSet rs );
00121 }
00122 }
00123 #endif // RESULTSET_H