CompleteDB Embedded: Direct C++ API  2.4.2
FastStatement.hpp
Go to the documentation of this file.
1 #ifndef COMPLETEDB_FASTSTATEMENT_HPP
2 #define COMPLETEDB_FASTSTATEMENT_HPP
3 
4 #include "CompleteDb.h"
6 #include "completedb/Object.hpp"
8 
9 namespace completedb {
10 
17 : public virtual Object
18 , public LastError
19 {
20 
21 public: // override Object iface
22 
26  virtual bool cast(const Object& from) { return completedb_FastStatement_cast(&m, from.get(), from.getClassType()); }
30  virtual bool isConnected() const { return completedb_FastStatement_isConnected(m); }
34  virtual bool isDisconnected() const { return completedb_FastStatement_isDisconnected(m); }
43 
44 public: // override LastError iface
45 
53  virtual const char* getLastError() const { return completedb_FastStatement_getLastError(m); }
54 
55 public: // iface
56 
60  virtual bool prepare() { return completedb_FastStatement_prepare(m); }
61 
62 public: // factory lvalue
63 
66 
67 public: // factory
68 
71 
72 private: // factory
73 
74  FastStatement(void* src) : Object(src) {}
75 
76 };
77 
78 } // namespace
79 
80 #endif /* COMPLETEDB_FASTSTATEMENT_HPP */