ledger-core
DatabaseResultSet.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from database.djinni
3 
4 #ifndef DJINNI_GENERATED_DATABASERESULTSET_HPP
5 #define DJINNI_GENERATED_DATABASERESULTSET_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class DatabaseError;
20 class DatabaseResultRow;
21 
27 public:
28  virtual ~DatabaseResultSet() {}
29 
34  virtual std::shared_ptr<DatabaseResultRow> getRow() = 0;
35 
37  virtual int32_t getUpdateCount() = 0;
38 
43  virtual bool hasNext() = 0;
44 
49  virtual int32_t available() = 0;
50 
55  virtual void next() = 0;
56 
58  virtual void close() = 0;
59 
61  virtual std::shared_ptr<DatabaseError> getError() = 0;
62 };
63 
64 } } } // namespace ledger::core::api
65 #endif //DJINNI_GENERATED_DATABASERESULTSET_HPP
virtual std::shared_ptr< DatabaseResultRow > getRow()=0
Definition: DatabaseResultSet.hpp:26
virtual std::shared_ptr< DatabaseError > getError()=0
Definition: Account.cpp:8