PrintDataSet.cpp File Reference
#include "DataAccessExamples.h"
#include <iostream>

Go to the source code of this file.

Functions

void PrintDataSet (std::string datasetName, te::da::DataSet *dataset)
 It prints the data in a given dataset. More...
 

Function Documentation

void PrintDataSet ( std::string  datasetName,
te::da::DataSet dataset 
)

It prints the data in a given dataset.

Parameters
datasetNamethe dataset name
datasetpointer to a dataset. Do not pass NULL.

This function will move the dataset to the item before first and return it there after printing.

Definition at line 7 of file PrintDataSet.cpp.

References te::da::DataSet::getAsString(), te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyName(), te::da::DataSet::isNull(), te::da::DataSet::moveBeforeFirst(), and te::da::DataSet::moveNext().

Referenced by DataSourceTransactor(), MemoryExample(), ObjectId(), ObjectId_query(), OGRExampleRead(), ORGExampleWrite(), PostGISExample(), PrintDataSets(), and QueryExample().