#ifndef _KM3NET_DB_RESULTSET_H_ #define _KM3NET_DB_RESULTSET_H_ #include "KM3NeTDB_Client.h" #include #include #include #include using namespace KM3NeT; using namespace KM3NeT::DB; class _Client; class _StreamDSResultSet : public ResultSet { private: _Client *_client; std::vector _Fields; std::vector _Values; std::ostringstream _oss; char *_scanbuf; int _bytes; bool _ReadLine(); void _BreakLineIntoStrings(std::vector &outvect); public: _StreamDSResultSet(_Client *client); bool Next(); inline unsigned int FieldCount() const override { return _Fields.size(); } inline const std::string& FieldName(unsigned int i) const override { return _Fields[i]; } inline const std::string& GetString(unsigned int i) const override { return _Values[i]; } void Close(); }; #endif