MCPcopy Create free account
hub / github.com/Kitware/VTK / GetFieldName

Method GetFieldName

IO/SQL/vtkSQLiteQuery.cxx:236–252  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

234
235//------------------------------------------------------------------------------
236const char* vtkSQLiteQuery::GetFieldName(int column)
237{
238 if (!this->Active)
239 {
240 vtkErrorMacro(<< "GetFieldName(): Query is not active!");
241 return nullptr;
242 }
243 else if (column < 0 || column >= this->GetNumberOfFields())
244 {
245 vtkErrorMacro(<< "GetFieldName(): Illegal field index " << column);
246 return nullptr;
247 }
248 else
249 {
250 return sqlite3_column_name(this->Private->Statement, column);
251 }
252}
253
254//------------------------------------------------------------------------------
255int vtkSQLiteQuery::GetFieldType(int column)

Callers 3

RequestDataMethod · 0.45
GetFieldIndexMethod · 0.45
TestSQLiteDatabaseFunction · 0.45

Calls 1

GetNumberOfFieldsMethod · 0.95

Tested by 1

TestSQLiteDatabaseFunction · 0.36