Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TSQLresult Class Reference

This class stores the results from SQL queries. More...

#include <TStorage.h>

List of all members.

Public Member Functions

 TSQLresult ()
 ~TSQLresult ()
 Empty constructor.
void clean ()
 Reset internal state.
int cols ()
 Number of columns (fields) in the result table.
int rows ()
 Number of rows in the result table.
wxString item (char *s, int i)
 Returns row i.
wxArrayString & operator[] (int i)
int operator[] (wxString &s2)
 Returns the number of field s.
int operator[] (const char *s)
 Returns the number of field s.

Public Attributes

wxArrayString field
 List of result fields (or column names).
vector< wxArrayString > content
 The results table ([row][column]).


Detailed Description

This class stores the results from SQL queries.


Constructor & Destructor Documentation

TSQLresult::TSQLresult  )  [inline]
 

TSQLresult::~TSQLresult  )  [inline]
 

Empty constructor.


Member Function Documentation

void TSQLresult::clean  )  [inline]
 

Reset internal state.

int TSQLresult::cols  )  [inline]
 

Number of columns (fields) in the result table.

wxString TSQLresult::item char *  s,
int  i
[inline]
 

Returns row i.

int TSQLresult::operator[] const char *  s  )  [inline]
 

Returns the number of field s.

int TSQLresult::operator[] wxString &  s2  )  [inline]
 

Returns the number of field s.

wxArrayString& TSQLresult::operator[] int  i  )  [inline]
 

int TSQLresult::rows  )  [inline]
 

Number of rows in the result table.


Member Data Documentation

vector<wxArrayString> TSQLresult::content
 

The results table ([row][column]).

wxArrayString TSQLresult::field
 

List of result fields (or column names).


The documentation for this class was generated from the following file:
Generated on Fri Aug 11 16:19:49 2006 for GENtle by  doxygen 1.4.1