/*=========================================================================Program: Visualization ToolkitModule: vtkSQLDatabaseTableSource.hCopyright (c) Ken Martin, Will Schroeder, Bill LorensenAll rights reserved.See Copyright.txt or http://www.kitware.com/Copyright.htm for details.This software is distributed WITHOUT ANY WARRANTY; without eventhe implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the above copyright notice for more information.=========================================================================*//*-------------------------------------------------------------------------Copyright 2008 Sandia Corporation.Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,the U.S. Government retains certain rights in this software.-------------------------------------------------------------------------*//*** @class vtkSQLDatabaseTableSource* @brief Generates a vtkTable based on an SQL query.*** This class combines vtkSQLDatabase, vtkSQLQuery, and vtkQueryToTable to* provide a convenience class for generating tables from databases.* Also this class can be easily wrapped and used within ParaView / OverView.*/#ifndef vtkSQLDatabaseTableSource_h#define vtkSQLDatabaseTableSource_h#include "vtkIOSQLModule.h" // For export macro#include "vtkStdString.h"#include "vtkTableAlgorithm.h"class vtkEventForwarderCommand;class VTKIOSQL_EXPORT vtkSQLDatabaseTableSource : public vtkTableAlgorithm{public:static vtkSQLDatabaseTableSource* New();vtkTypeMacro(vtkSQLDatabaseTableSource, vtkTableAlgorithm);void PrintSelf(ostream& os, vtkIndent indent) override;vtkStdString GetURL();void SetURL(const vtkStdString& url);void SetPassword(const vtkStdString& password);vtkStdString GetQuery();void SetQuery(const vtkStdString& query);//@{/*** The name of the array for generating or assigning pedigree ids* (default "id").*/vtkSetStringMacro(PedigreeIdArrayName);vtkGetStringMacro(PedigreeIdArrayName);//@}//@{/*** If on (default), generates pedigree ids automatically.* If off, assign one of the arrays to be the pedigree id.*/vtkSetMacro(GeneratePedigreeIds, bool);vtkGetMacro(GeneratePedigreeIds, bool);vtkBooleanMacro(GeneratePedigreeIds, bool);//@}protected:vtkSQLDatabaseTableSource();~vtkSQLDatabaseTableSource() override;int RequestData(vtkInformation*,vtkInformationVector**,vtkInformationVector*) override;private:vtkSQLDatabaseTableSource(const vtkSQLDatabaseTableSource&) = delete;void operator=(const vtkSQLDatabaseTableSource&) = delete;char* PedigreeIdArrayName;bool GeneratePedigreeIds;/*** This intercepts events from the graph layout class* and re-emits them as if they came from this class.*/vtkEventForwarderCommand *EventForwarder;class implementation;implementation* const Implementation;};#endif// VTK-HeaderTest-Exclude: vtkSQLDatabaseTableSource.h
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。