VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
PostgreSQL
vtkPostgreSQLQuery.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPostgreSQLQuery.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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
38
#ifndef __vtkPostgreSQLQuery_h
39
#define __vtkPostgreSQLQuery_h
40
41
#include "vtkIOPostgreSQLModule.h"
// For export macro
42
#include "
vtkSQLQuery.h
"
43
44
class
vtkPostgreSQLDatabase
;
45
class
vtkVariant
;
46
class
vtkVariantArray
;
47
class
vtkPostgreSQLQueryPrivate;
48
49
class
VTKIOPOSTGRESQL_EXPORT
vtkPostgreSQLQuery
:
public
vtkSQLQuery
50
{
51
public
:
52
static
vtkPostgreSQLQuery
*
New
();
53
void
PrintSelf
( ostream& os,
vtkIndent
indent );
54
vtkTypeMacro(
vtkPostgreSQLQuery
,
vtkSQLQuery
);
55
58
bool
Execute
();
59
61
int
GetNumberOfFields
();
62
64
const
char
*
GetFieldName
(
int
i );
65
68
int
GetFieldType
(
int
i );
69
71
bool
NextRow
();
72
74
bool
HasError
();
75
77
78
bool
BeginTransaction
();
79
bool
RollbackTransaction
();
80
bool
CommitTransaction
();
82
84
vtkVariant
DataValue
(
vtkIdType
c );
85
87
const
char
*
GetLastErrorText
();
88
90
virtual
vtkStdString
EscapeString
(
vtkStdString
s,
bool
addSurroundingQuotes =
true
);
91
94
int
GetNumberOfRows();
95
96
protected
:
97
vtkPostgreSQLQuery
();
98
~
vtkPostgreSQLQuery
();
99
100
vtkSetStringMacro(LastErrorText);
101
102
bool
IsColumnBinary(
int
whichColumn);
103
const
char
*GetColumnRawData(
int
whichColumn);
104
105
bool
TransactionInProgress
;
106
char
*
LastErrorText
;
107
int
CurrentRow
;
108
109
vtkPostgreSQLQueryPrivate *
QueryInternals
;
110
111
void
DeleteQueryResults();
112
113
//BTX
114
friend
class
vtkPostgreSQLDatabase
;
115
//ETX
116
117
private
:
118
vtkPostgreSQLQuery
(
const
vtkPostgreSQLQuery
& );
// Not implemented.
119
void
operator = (
const
vtkPostgreSQLQuery
& );
// Not implemented.
120
};
121
122
#endif // __vtkPostgreSQLQuery_h
123
Generated on Thu May 24 2012 22:22:32 for VTK by
1.8.1