CompleteDB Embedded: Direct C++ API
2.4.2
Main Page
Namespaces
Classes
Files
File List
File Members
FastStatement.hpp
Go to the documentation of this file.
1
#ifndef COMPLETEDB_FASTSTATEMENT_HPP
2
#define COMPLETEDB_FASTSTATEMENT_HPP
3
4
#include "
CompleteDb.h
"
5
#include "
common/CompleteDbTypes.hpp
"
6
#include "
completedb/Object.hpp
"
7
#include "
completedb/LastError.hpp
"
8
9
namespace
completedb {
10
16
class
FastStatement
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
); }
38
virtual
Type::Enum
getClassType
()
const
{
return
completedb_FastStatement_getClassType
(
m
); }
42
virtual
Type::Enum
getObjectType
()
const
{
return
completedb_FastStatement_getObjectType
(
m
); }
43
44
public
:
// override LastError iface
45
49
virtual
Error::Enum
getLastErrorId
()
const
{
return
completedb_FastStatement_getLastErrorId
(
m
); }
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
64
FastStatement
&
operator=
(
const
FastStatement
& src) {
completedb_FastStatement_assign
(&
m
, src.
m
, src.
getClassType
());
return
*
this
; }
65
FastStatement
(
const
FastStatement
& src) :
Object
(
completedb_FastStatement_alloc_copy
(src.
m
, src.
getClassType
())) {}
66
67
public
:
// factory
68
69
virtual
~FastStatement
() {
completedb_FastStatement_free
(&
m
); }
70
FastStatement
() :
Object
(
completedb_FastStatement_alloc
()) {}
71
72
private
:
// factory
73
74
FastStatement
(
void
* src) :
Object
(src) {}
75
76
};
77
78
}
// namespace
79
80
#endif
/* COMPLETEDB_FASTSTATEMENT_HPP */
Z:
mmx
workspace
CompleteDB
sourceApi
include
completedb
FastStatement.hpp
Generated on Wed Apr 24 2013 16:54:06 for CompleteDB Embedded: Direct C++ API by
1.8.1.2