VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
MySQL
vtkMySQLQuery.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMySQLQuery.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
35
#ifndef __vtkMySQLQuery_h
36
#define __vtkMySQLQuery_h
37
38
#include "vtkIOMySQLModule.h"
// For export macro
39
#include "
vtkSQLQuery.h
"
40
41
class
vtkMySQLDatabase
;
42
class
vtkVariant
;
43
class
vtkVariantArray
;
44
class
vtkMySQLQueryInternals;
45
46
class
VTKIOMYSQL_EXPORT
vtkMySQLQuery
:
public
vtkSQLQuery
47
{
48
//BTX
49
friend
class
vtkMySQLDatabase
;
50
//ETX
51
52
public
:
53
vtkTypeMacro(
vtkMySQLQuery
,
vtkSQLQuery
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
55
static
vtkMySQLQuery
*
New
();
56
59
bool
SetQuery
(
const
char
*query);
60
63
bool
Execute
();
64
66
69
virtual
bool
BeginTransaction
();
70
virtual
bool
CommitTransaction
();
71
virtual
bool
RollbackTransaction
();
73
75
int
GetNumberOfFields
();
76
78
const
char
*
GetFieldName
(
int
i);
79
82
int
GetFieldType
(
int
i);
83
85
bool
NextRow
();
86
88
bool
HasError
();
89
91
vtkVariant
DataValue
(
vtkIdType
c);
92
94
const
char
*
GetLastErrorText
();
95
97
102
using
vtkSQLQuery::BindParameter
;
103
bool
BindParameter
(
int
index
,
unsigned
char
value
);
104
bool
BindParameter
(
int
index
,
signed
char
value
);
105
bool
BindParameter
(
int
index
,
unsigned
short
value
);
106
bool
BindParameter
(
int
index
,
signed
short
value
);
107
bool
BindParameter
(
int
index
,
unsigned
int
value
);
108
//ETX
109
bool
BindParameter
(
int
index
,
int
value
);
110
//BTX
111
bool
BindParameter
(
int
index
,
unsigned
long
value
);
112
bool
BindParameter
(
int
index
,
signed
long
value
);
113
bool
BindParameter
(
int
index
, vtkTypeUInt64
value
);
114
bool
BindParameter
(
int
index
, vtkTypeInt64
value
);
115
//ETX
116
bool
BindParameter
(
int
index
,
float
value
);
117
bool
BindParameter
(
int
index
,
double
value
);
119
120
bool
BindParameter
(
int
index
,
const
char
*stringValue);
122
123
bool
BindParameter
(
int
index
,
const
char
*stringValue,
size_t
length
);
124
bool
BindParameter
(
int
index
,
const
vtkStdString
&
string
);
126
128
130
bool
BindParameter
(
int
index
,
const
void
*
data
,
size_t
length
);
131
bool
ClearParameterBindings
();
133
135
virtual
vtkStdString
EscapeString
(
vtkStdString
src,
bool
addSurroundingQuotes =
true
);
136
137
protected
:
138
vtkMySQLQuery
();
139
~
vtkMySQLQuery
();
140
141
vtkSetStringMacro(LastErrorText);
142
143
private
:
144
vtkMySQLQuery
(
const
vtkMySQLQuery
&);
// Not implemented.
145
void
operator=(
const
vtkMySQLQuery
&);
// Not implemented.
146
147
vtkMySQLQueryInternals *Internals;
148
bool
InitialFetch;
149
char
*LastErrorText;
150
};
151
152
#endif // __vtkMySQLQuery_h
153
Generated on Thu May 24 2012 22:22:31 for VTK by
1.8.1