VTK
vtkRowQuery.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRowQuery.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 -------------------------------------------------------------------------*/
52 #ifndef vtkRowQuery_h
53 #define vtkRowQuery_h
54 
55 #include "vtkIOSQLModule.h" // For export macro
56 #include "vtkObject.h"
57 
58 class vtkVariant;
59 class vtkVariantArray;
60 
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent);
66 
69  virtual bool Execute() = 0;
70 
72  virtual int GetNumberOfFields() = 0;
73 
75  virtual const char* GetFieldName(int i) = 0;
76 
79  virtual int GetFieldType(int i) = 0;
80 
83  int GetFieldIndex(char* name);
84 
86  virtual bool NextRow() = 0;
87 
91  virtual bool IsActive() = 0;
92 
95  bool NextRow(vtkVariantArray* rowArray);
96 
99 
101  virtual bool HasError() = 0;
102 
104  virtual const char* GetLastErrorText() = 0;
105 
107 
112  vtkSetMacro(CaseSensitiveFieldNames, bool);
113  vtkGetMacro(CaseSensitiveFieldNames, bool);
114  vtkBooleanMacro(CaseSensitiveFieldNames, bool);
116 
117 protected:
121 private:
122  vtkRowQuery(const vtkRowQuery &); // Not implemented.
123  void operator=(const vtkRowQuery &); // Not implemented.
124 };
125 
126 #endif // vtkRowQuery_h
127 
vtkRowQuery::GetFieldName
virtual const char * GetFieldName(int i)=0
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkRowQuery::NextRow
bool NextRow(vtkVariantArray *rowArray)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkRowQuery::~vtkRowQuery
~vtkRowQuery()
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkRowQuery::CaseSensitiveFieldNames
bool CaseSensitiveFieldNames
Definition: vtkRowQuery.h:120
vtkRowQuery::GetFieldIndex
int GetFieldIndex(char *name)
vtkVariantArray
An array holding vtkVariants.
Definition: vtkVariantArray.h:48
vtkRowQuery::HasError
virtual bool HasError()=0
vtkRowQuery::vtkRowQuery
vtkRowQuery()
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkgl::c
const GLubyte * c
Definition: vtkgl.h:15720
vtkIOSQLModule.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkVariant
A atomic type representing the union of many types.
Definition: vtkVariant.h:79
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkRowQuery::GetNumberOfFields
virtual int GetNumberOfFields()=0
vtkObject.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkRowQuery::IsActive
virtual bool IsActive()=0
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkRowQuery::DataValue
virtual vtkVariant DataValue(vtkIdType c)=0
vtkRowQuery::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkRowQuery::GetFieldType
virtual int GetFieldType(int i)=0
VTKIOSQL_EXPORT
#define VTKIOSQL_EXPORT
Definition: vtkIOSQLModule.h:15
vtkRowQuery
abstract interface for queries that return row-oriented results.
Definition: vtkRowQuery.h:62
vtkRowQuery::Execute
virtual bool Execute()=0
vtkRowQuery::NextRow
virtual bool NextRow()=0
vtkRowQuery::GetLastErrorText
virtual const char * GetLastErrorText()=0