Utility functions for ADO.
More...
#include "../common/StringUtils.h"
#include "../geometry/Geometry.h"
#include "Config.h"
#include <cstdlib>
#include <cstring>
#include <vector>
Go to the source code of this file.
Namespaces | |
te | |
TerraLib. | |
te::ado | |
Namespace for the TerraLib ADO driver implementation. | |
te::core | |
te::da | |
Namespace for the DataAccess API of TerraLib. | |
te::dt | |
Namespace for the Data Type module of TerraLib. | |
te::gm | |
Namespace for the Vector Geometry module of TerraLib. | |
te::mem | |
Namespace for the memory data source of TerraLib. | |
Functions | |
void | te::ado::Blob2Variant (const char *blob, int size, _variant_t &var) |
Convert a blob to a variant. More... | |
void | te::ado::Convert2Ado (const te::gm::Geometry *geo, _variant_t &var) |
Bind TerraLib geometry to ADO variant. More... | |
ADOX::DataTypeEnum | te::ado::Convert2Ado (int terralib) |
Bind TerraLib Type to ADO Type. More... | |
int | te::ado::Convert2Terralib (::DataTypeEnum adoType) |
Bind ADO Type to TerraLib Type. More... | |
te::dt::Property * | te::ado::Convert2Terralib (ADOX::_ColumnPtr column) |
Bind ADO column to Terralib property. More... | |
te::da::Constraint * | te::ado::Convert2Terralib (ADOX::_KeyPtr key) |
Bind ADO key to Terralib constraint. More... | |
std::vector< te::dt::Property * > | te::ado::Convert2Terralib (ADOX::ColumnsPtr columns) |
Bind ADO columns to vector of Terralib properties. More... | |
int | te::ado::Convert2Terralib (ADOX::DataTypeEnum adoType) |
Bind ADOX Type to TerraLib Type. More... | |
std::string | te::ado::GetAdoStringType (const int &terralib) |
Bind TerraLib type to an ADO valid fiel type name. More... | |
std::unique_ptr< te::dt::DateTime > | te::ado::GetDateTime (std::string &value, std::string &mask, std::string &sepD, std::string &sepT) |
It gets the DateTime TerraLib 5 from string. More... | |
std::string | te::ado::GetFormattedDateTime (te::dt::DateTime *dateTime) |
It gets a formatted DateTime string for ADO. More... | |
const std::string & | te::ado::GetGeometryName (te::gm::GeomType t) |
It returns the geometry OGC names. More... | |
const te::gm::GeomType | te::ado::GetGeometryType (std::string t) |
It returns the geometry type concerning the OGC name. More... | |
int | te::ado::GetMonth (const std::string &month) |
It gets the index of a month. More... | |
int | te::ado::GetSRID (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
Read the geometry_columns table end return a SRID. More... | |
std::string | te::ado::GetSystemDateTimeFormat (std::string &indAM, std::string &indPM, std::string &sepD, std::string &sepT) |
It gets the system Date and Time format. More... | |
te::gm::GeomType | te::ado::GetType (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
Read the geometry_columns table end return a geometry type. More... | |
bool | te::ado::IsGeomProperty (_ConnectionPtr adoConn, std::string tableName, std::string columnName) |
Verifies whether is in the geometry_columns table. More... | |
bool | te::ado::IsZProperty (te::gm::GeomType type) |
Verifies whether Z property. More... | |
std::string | te::ado::MakeConnectionStr (const te::core::URI &connInfo) |
Create a connection string based on a map. More... | |
void | te::ado::Variant2Blob (const _variant_t var, int size, char *&blob) |
Convert a variant to a blob. More... | |
Utility functions for ADO.
Definition in file Utils.h.