Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 4974

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/IO/vtkPostgreSQLQuery.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/IO/vtkPostgreSQLQuery.h</h1><a href="a03182.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkPostgreSQLQuery.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00015"></a>00015 <span class="comment">/*-------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment">  Copyright 2008 Sandia Corporation.</span>
<a name="l00017"></a>00017 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span>
<a name="l00018"></a>00018 <span class="comment">  the U.S. Government retains certain rights in this software.</span>
<a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span>
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkPostgreSQLQuery_h</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPostgreSQLQuery_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a03198.html">vtkSQLQuery.h</a>"</span>
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a01288.html" title="maintain a connection to a PostgreSQL database">vtkPostgreSQLDatabase</a>;
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span>vtkPostgreSQLQueryPrivate;
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="a01290.html">00048</a> <span class="keyword">class </span><a class="code" href="a02170.html#aab695c81fb47ab75c91e111e17cbe2c">VTK_IO_EXPORT</a> <a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a> : <span class="keyword">public</span> <a class="code" href="a01600.html" title="executes an sql query and retrieves results">vtkSQLQuery</a>
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050 <span class="keyword">public</span>:
<a name="l00051"></a>00051   <span class="keyword">static</span> <a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00052"></a>00052   <span class="keywordtype">void</span> <a class="code" href="a01600.html#ac1760bd9a271316101d40e36ddf8b53">PrintSelf</a>( ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent );
<a name="l00053"></a><a class="code" href="a01290.html#7a7e21c72483dd05c703feb2d9742989">00053</a>   vtkTypeRevisionMacro(<a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>, <a class="code" href="a01600.html" title="executes an sql query and retrieves results">vtkSQLQuery</a>);
<a name="l00054"></a>00054 
<a name="l00057"></a>00057   <span class="keywordtype">bool</span> <a class="code" href="a01600.html#acf882b154ebcb4a8c849ff0b244c824">Execute</a>();
<a name="l00058"></a>00058 
<a name="l00060"></a>00060   <span class="keywordtype">int</span> <a class="code" href="a01501.html#2e649f564b8022061bf048b97871c09f">GetNumberOfFields</a>();
<a name="l00061"></a>00061 
<a name="l00063"></a>00063   <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a01501.html#6485ddb0ac5dae932f2150eaa118bd54">GetFieldName</a>( <span class="keywordtype">int</span> i );
<a name="l00064"></a>00064 
<a name="l00067"></a>00067   <span class="keywordtype">int</span> <a class="code" href="a01501.html#95f480d432048b4faccfe65bbcb49a75">GetFieldType</a>( <span class="keywordtype">int</span> i );
<a name="l00068"></a>00068 
<a name="l00070"></a>00070   <span class="keywordtype">bool</span> <a class="code" href="a01501.html#46bdd49f8333a1554c7e3bcc7fc9838b">NextRow</a>();
<a name="l00071"></a>00071 
<a name="l00073"></a>00073   <span class="keywordtype">bool</span> <a class="code" href="a01501.html#fc08cebf1e30fd21c47c5155b1677697">HasError</a>();
<a name="l00074"></a>00074 
<a name="l00076"></a>00076 
<a name="l00077"></a>00077   <span class="keywordtype">bool</span> <a class="code" href="a01600.html#4126f4402c301fad9a2e8f3c0bc3d327">BeginTransaction</a>();
<a name="l00078"></a>00078   <span class="keywordtype">bool</span> <a class="code" href="a01600.html#d55429a7c25b716399d16387f90edaab">RollbackTransaction</a>();
<a name="l00079"></a>00079   <span class="keywordtype">bool</span> <a class="code" href="a01600.html#313d1d9107da10d3b3f56922f761f0cc">CommitTransaction</a>();
<a name="l00081"></a>00081 
<a name="l00082"></a>00082   <span class="comment">//BTX</span>
<a name="l00084"></a>00084 <span class="comment"></span>
<a name="l00085"></a>00085   <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> <a class="code" href="a01501.html#45381c8cba3c83e915e96c24ef81982d">DataValue</a>( <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> c );
<a name="l00086"></a>00086   <span class="comment">//ETX</span>
<a name="l00088"></a>00088 <span class="comment"></span>
<a name="l00090"></a>00090   <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a01501.html#1afcc19425bd6ef2f1fe0ce88749257b">GetLastErrorText</a>();
<a name="l00091"></a>00091 
<a name="l00092"></a>00092   <span class="comment">//BTX</span>
<a name="l00094"></a>00094 <span class="comment"></span>
<a name="l00095"></a>00095   <span class="keyword">virtual</span> <a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a> <a class="code" href="a01600.html#fde168634825c3dc579ecfb7e94792a7">EscapeString</a>( <a class="code" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short.">vtkStdString</a> s, <span class="keywordtype">bool</span> addSurroundingQuotes = <span class="keyword">true</span> );
<a name="l00096"></a>00096   <span class="comment">//ETX</span>
<a name="l00098"></a>00098 <span class="comment"></span>
<a name="l00101"></a>00101   <span class="keywordtype">int</span> GetNumberOfRows();
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="keyword">protected</span>:
<a name="l00104"></a>00104   <a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>();
<a name="l00105"></a>00105   ~<a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>();
<a name="l00106"></a>00106 
<a name="l00107"></a>00107   vtkSetStringMacro(LastErrorText);
<a name="l00108"></a>00108 
<a name="l00109"></a>00109   <span class="keywordtype">bool</span> IsColumnBinary(<span class="keywordtype">int</span> whichColumn);
<a name="l00110"></a>00110   <span class="keyword">const</span> <span class="keywordtype">char</span> *GetColumnRawData(<span class="keywordtype">int</span> whichColumn);
<a name="l00111"></a>00111 
<a name="l00112"></a><a class="code" href="a01290.html#26c0bae5c9d9b0ccb7b07adffd6f7593">00112</a>   <span class="keywordtype">bool</span> TransactionInProgress;
<a name="l00113"></a><a class="code" href="a01290.html#db91029e2e73297fb02f420305198aa8">00113</a>   <span class="keywordtype">char</span> *LastErrorText;
<a name="l00114"></a><a class="code" href="a01290.html#6d686750ce9973bc1d38b7a4738fb9db">00114</a>   <span class="keywordtype">int</span> CurrentRow;
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="a01290.html#6486b3abf01f93b56af12f8d01196aa1">00116</a>   vtkPostgreSQLQueryPrivate *QueryInternals;
<a name="l00117"></a>00117 
<a name="l00118"></a>00118   <span class="keywordtype">void</span> DeleteQueryResults();
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   <span class="comment">//BTX</span>
<a name="l00121"></a><a class="code" href="a01290.html#45011fec3b1113d4e419cccd8e257bff">00121</a>   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="a01288.html" title="maintain a connection to a PostgreSQL database">vtkPostgreSQLDatabase</a>;
<a name="l00122"></a>00122   <span class="comment">//ETX</span>
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keyword">private</span>:
<a name="l00125"></a>00125   <a class="code" href="a01288.html#b852cbd919140287d1da49420c503c45">vtkPostgreSQLQuery</a>( <span class="keyword">const</span> <a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00126"></a>00126   <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a01290.html" title="vtkSQLQuery implementation for PostgreSQL databases">vtkPostgreSQLQuery</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00127"></a>00127 };
<a name="l00128"></a>00128 
<a name="l00129"></a>00129 <span class="preprocessor">#endif // __vtkPostgreSQLQuery_h</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:40 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>