implemented amb27 (SQL_Rewind)

fixed builds
This commit is contained in:
David Anderson
2007-04-24 15:46:33 +00:00
parent adfc2ab451
commit bfe1ff6e15
13 changed files with 81 additions and 2 deletions

View File

@ -57,6 +57,10 @@ namespace SourceMod
* call IsDone() after each call to NextRow().
*/
virtual void NextRow() =0;
/**
* Resets back to the first row.
*/
virtual void Rewind() =0;
};
struct QueryInfo

View File

@ -158,3 +158,9 @@ void SqliteResultSet::NextRow()
{
m_CurIndex = (++m_CurRow * m_Columns);
}
void SqliteResultSet::Rewind()
{
m_CurRow = 1;
m_CurIndex = (m_CurRow * m_Columns);
}

View File

@ -27,6 +27,7 @@ namespace SourceMod
bool IsDone();
IResultRow *GetRow();
void NextRow();
void Rewind();
public:
/**
* IResultRow