Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (34 sloc)
864 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __TEMPLATEOPENQUERY | |
#define __TEMPLATEOPENQUERY | |
// wxWindows includes | |
#include <wx/datetime.h> | |
#include <wx/string.h> | |
#include <wx/dynarray.h> | |
// Statsgen Includes | |
#include "sqlite3.h" | |
//#include "libsqlitewrapped.h" | |
class TemplateOpenQuery; | |
WX_DECLARE_OBJARRAY(TemplateOpenQuery,ArrayOfTemplateOpenQuery); | |
class TemplateOpenQuery | |
{ | |
public: | |
TemplateOpenQuery(); | |
virtual ~TemplateOpenQuery(); | |
bool NextRow(); | |
bool Initiate(wxString &SQLIn, | |
sqlite3 *dbHandleIn); | |
wxString RetrieveProperty(wxString &property); | |
void Clone(TemplateOpenQuery *orgQuery); | |
wxString GetColumnName(int index); | |
wxString GetColumnValue(int index); | |
int ColumnCount(); | |
public: | |
wxString variable; | |
private: | |
sqlite3_stmt *query; | |
sqlite3 *dbHandle; | |
wxArrayString columnNames; | |
wxString SQL; | |
wxArrayString columnValues; | |
}; | |
#endif |