SqliteDBResultSet.h

From Giona

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 1: Line 1:
 +
<pre>
 +
 +
#ifndef SQLITEDBRESULTSET_H_
 +
#define SQLITEDBRESULTSET_H_
 +
 +
#include <iostream>
 +
#include "Debug.h"
 +
#include "GenericListNode.h"
 +
#include "GenericList.h"
 +
 +
class SqliteDBResultSet
 +
{
 +
public:
 +
static const int NO_ERROR = 0;
 +
static const int ERROR_INDEX_OUT_OF_RANGE = 1;
 +
 +
SqliteDBResultSet();
 +
virtual ~SqliteDBResultSet();
 +
 +
int getLastError();
 +
int getNColumns();
 +
bool addColumn(char* columnName);
 +
bool addField(char* value);
 +
int getNRows();
 +
char* getColumnName(int columnNumber);
 +
char* getFieldValue(int rowNumber, int columnNumber);
 +
private:
 +
GenericList* columns;
 +
GenericList* data;
 +
int lastError;
 +
};
 +
#endif /*SQLITEDBRESULTSET_H_*/
 +
 +
 +
</pre>
 +
[[Creazione di applicazioni con SQLite | BACK]]
[[Creazione di applicazioni con SQLite | BACK]]
 +
 +
[[Category:Codice Sorgente]]

Current revision as of 17:42, 17 December 2007


#ifndef SQLITEDBRESULTSET_H_
#define SQLITEDBRESULTSET_H_

#include <iostream>
#include "Debug.h"
#include "GenericListNode.h"
#include "GenericList.h"

class SqliteDBResultSet
{
public:
	static const int NO_ERROR = 0;
	static const int ERROR_INDEX_OUT_OF_RANGE = 1;
	
	SqliteDBResultSet();
	virtual ~SqliteDBResultSet();
	
	int getLastError();
	int getNColumns();
	bool addColumn(char* columnName);
	bool addField(char* value);
	int getNRows();
	char* getColumnName(int columnNumber);
	char* getFieldValue(int rowNumber, int columnNumber);
private:
	GenericList* columns;
	GenericList* data;
	int lastError;
};
#endif /*SQLITEDBRESULTSET_H_*/



BACK

Personal tools