DroppingDataSetTypeProperty.cpp
Go to the documentation of this file.
1 // TerraLib
2 #include <terralib/dataaccess.h>
3 #include <terralib/memory.h>
4 
5 // Examples
6 #include "DataAccessExamples.h"
7 
8 // STL
9 #include <iostream>
10 
11 void DroppingDataSetTypeProperty(const std::string& datasetname, const std::string &propname, te::da::DataSourceTransactor* trans)
12 {
13  try
14  {
15  trans->dropProperty(datasetname, propname);
16  return;
17  }
18  catch(const std::exception& e)
19  {
20  std::cout << std::endl << "An exception has occurred in Dropping DataSetType Property Example: " << e.what() << std::endl;
21  }
22  catch(...)
23  {
24  std::cout << std::endl << "An unexpected exception has occurred in Dropping DataSetType Property Example!" << std::endl;
25  }
26 }
27 
28 
void DroppingDataSetTypeProperty(const std::string &datasetname, const std::string &propname, te::da::DataSourceTransactor *trans)
It removes a property from the data set type and from the associated data source. ...
This file contains include headers for the memory data source of TerraLib.
Examples on how to access/manipulate DataSources in TerraLib.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
virtual void dropProperty(const std::string &datasetName, const std::string &name)=0
It removes a property from the given dataset.
This file contains include headers for the Data Access module of TerraLib.