Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1.  
  2.         class SQLiteDataReader
  3.         {
  4.         public:
  5.             SQLiteDataReader(SQLiteCommand command)
  6.                 : m_command(command)
  7.             {}
  8.  
  9.             bool Next()
  10.             {
  11.                 try
  12.                 {
  13.                     m_currentRow = command.ExecuteRow();
  14.                     return true;
  15.                 }
  16.                 catch (const SQLiteDone& ex)
  17.                 {
  18.                     return false;
  19.                 }
  20.             }
  21.             SQLiteRow Get() const throw() { return m_currentRow; }
  22.  
  23.         private:
  24.             SQLiteCommand m_command;
  25.             SQLiteRow m_currentRow;
  26.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement