CompleteDB Embedded: Direct C++ API
2.4.2
Main Page
Namespaces
Classes
Files
File List
File Members
Table.hpp
Go to the documentation of this file.
1
#ifndef COMPLETEDB_TABLE_HPP
2
#define COMPLETEDB_TABLE_HPP
3
4
#include "
CompleteDb.h
"
5
#include "
common/CompleteDbTypes.hpp
"
6
#include "
completedb/Object.hpp
"
7
#include "
completedb/LastError.hpp
"
8
#include "
completedb/TableDml.hpp
"
9
#include "
completedb/TableInfo.hpp
"
10
11
namespace
completedb {
12
18
class
Table
19
:
public
virtual
Object
20
,
public
LastError
21
,
public
TableDml
22
,
public
TableInfo
23
{
24
25
friend
class
Database
;
26
27
public
:
// override Object iface
28
32
inline
bool
cast
(
const
Object
& from) {
return
completedb_Table_cast
(&
m
, from.
get
(), from.
getClassType
()); }
36
inline
bool
isConnected
()
const
{
return
completedb_Table_isConnected
(
m
); }
40
inline
bool
isDisconnected
()
const
{
return
completedb_Table_isDisconnected
(
m
); }
44
inline
Type::Enum
getClassType
()
const
{
return
completedb_Table_getClassType
(
m
); }
48
inline
Type::Enum
getObjectType
()
const
{
return
completedb_Table_getObjectType
(
m
); }
49
50
public
:
// override LastError iface
51
55
inline
Error::Enum
getLastErrorId
()
const
{
return
completedb_Table_getLastErrorId
(
m
); }
59
inline
const
char
*
getLastError
()
const
{
return
completedb_Table_getLastError
(
m
); }
60
61
public
:
// override EntityInfo iface
62
66
inline
const
char
*
getDescription
()
const
{
return
completedb_Table_getDescription
(
m
); }
67
68
public
:
// override IdentityInfo iface
69
73
inline
const
char
*
getName
()
const
{
return
completedb_Table_getName
(
m
); }
74
75
public
:
// override TableDml iface
76
80
inline
Record
getRecord
() {
return
completedb_Table_getRecord
(
m
); }
81
82
public
:
// override TableInfo iface
83
87
inline
bool
containsColumn
(
const
char
* name) {
return
completedb_Table_containsColumn
(
m
, name); }
91
inline
bool
containsColumn
(
const
IdentityInfo
& name) {
return
completedb_Table_containsColumn
(
m
, name.
getName
()); }
95
inline
bool
exists
() {
return
completedb_Table_exists
(
m
); }
99
inline
ColumnIterator
getColumns
() {
return
completedb_Table_getColumns
(
m
); }
100
101
public
:
// factory lvalue
102
103
Table
&
operator=
(
const
Table
& src) {
completedb_Table_assign
(&
m
, src.
m
, src.
getClassType
());
return
*
this
; }
104
Table
(
const
Table
& src) :
Object
(
completedb_Table_alloc_copy
(src.
m
, src.
getClassType
())) {}
105
106
public
:
// factory
107
108
virtual
~Table
() {
completedb_Table_free
(&
m
); }
109
Table
() :
Object
(
completedb_Table_alloc
()) {}
110
111
private
:
// factory
112
113
Table
(
void
* src) :
Object
(src) {}
114
115
};
116
117
}
// namespace
118
119
#endif
/* COMPLETEDB_TABLE_HPP */
Z:
mmx
workspace
CompleteDB
sourceApi
include
completedb
Table.hpp
Generated on Wed Apr 24 2013 16:54:06 for CompleteDB Embedded: Direct C++ API by
1.8.1.2