26 #ifndef __ROWSETREADER_H_INCL__
27 #define __ROWSETREADER_H_INCL__
29 #include "packets/General.h"
43 virtual const char*
columnName(
size_t index )
const = 0;
55 virtual bool GetBool(
size_t index )
const = 0;
58 virtual double GetFloat(
size_t index )
const = 0;
59 virtual const char*
GetString(
size_t index )
const = 0;
60 virtual const char*
GetWString(
size_t index )
const = 0;
94 bool IsNone(
size_t index )
const;
96 bool GetBool(
size_t index )
const;
99 double GetFloat(
size_t index )
const;
100 const char*
GetString(
size_t index )
const;
124 void _SetRow(
size_t rowIndex );
131 const char*
columnName(
size_t index )
const {
return mSet.header[ index ].c_str(); }
162 void _SetRow(
size_t rowIndex );
169 const char*
columnName(
size_t index )
const {
return mSet.header[ index ].c_str(); }
195 SetSQLDumper(
const char* table,
const char* keyField, FILE* out );
bool operator!=(const iterator &oth) const
std::string GetAsString(size_t index) const
virtual size_t columnCount() const =0
const util_Tupleset & mSet
virtual const char * columnName(size_t index) const =0
virtual size_t rowCount() const =0
PyRep::PyType GetType(size_t index) const
const iterator & operator++()
virtual int64 GetLong(size_t index) const =0
virtual PyRep * GetRep(size_t index) const =0
bool operator==(const iterator &oth) const
virtual BaseRowsetReader * _baseReader() const =0
virtual ~BaseRowsetReader()
const std::string mKeyField
Python object SQL dumper.
SetSQLDumper(const char *table, const char *keyField, FILE *out)
BaseRowsetReader * _baseReader() const
uint32 GetInt(size_t index) const
PyRep * GetRep(size_t index) const
virtual void _SetRow(size_t rowIndex)
const char * columnName(size_t index) const
void _SetRow(size_t rowIndex)
const char * columnName(size_t index) const
virtual const char * GetString(size_t index) const =0
virtual bool GetBool(size_t index) const =0
PyRep * GetItem(size_t index) const
Returns Python object.
const iterator & operator--()
const iterator & operator++(int)
TuplesetReader(const util_Tupleset &tupleset)
virtual PyRep::PyType GetType(size_t index) const =0
bool VisitObject(const PyObject *rep)
Object type visitor.
virtual size_t FindColumn(const char *name)
int64 GetLong(size_t index) const
bool GetBool(size_t index) const
virtual size_t _rowIndex() const
bool IsNone(size_t index) const
void _SetRow(size_t rowIndex)
PyType
Python wire object types.
virtual double GetFloat(size_t index) const =0
const iterator & operator--(int)
size_t columnCount() const
const char * GetString(size_t index) const
size_t columnCount() const
const char * GetWString(size_t index) const
virtual const char * GetWString(size_t index) const =0
bool VisitTuple(const PyTuple *rep)
the nested types Visitor
double GetFloat(size_t index) const
virtual uint32 GetInt(size_t index) const =0
PyList * _GetRow(size_t index) const
PyRep * GetRep(size_t index) const
PyList * _GetRow(size_t index) const
virtual bool IsNone(size_t index) const
BaseRowsetReader * _baseReader() const
RowsetReader(const util_Rowset &rowset)