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 | |
| namespace | te |
| TerraLib. | |
| namespace | te::ado |
| Namespace for the TerraLib ADO driver implementation. | |
| namespace | te::core |
| namespace | te::da |
| Namespace for the DataAccess API of TerraLib. | |
| namespace | te::dt |
| Namespace for the Data Type module of TerraLib. | |
| namespace | te::gm |
| Namespace for the Vector Geometry module of TerraLib. | |
| namespace | 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. | |
| void | te::ado::Convert2Ado (const te::gm::Geometry *geo, _variant_t &var) |
| Bind TerraLib geometry to ADO variant. | |
| ADOX::DataTypeEnum | te::ado::Convert2Ado (int terralib) |
| Bind TerraLib Type to ADO Type. | |
| int | te::ado::Convert2Terralib (::DataTypeEnum adoType) |
| Bind ADO Type to TerraLib Type. | |
| te::dt::Property * | te::ado::Convert2Terralib (ADOX::_ColumnPtr column) |
| Bind ADO column to Terralib property. | |
| te::da::Constraint * | te::ado::Convert2Terralib (ADOX::_KeyPtr key) |
| Bind ADO key to Terralib constraint. | |
| std::vector< te::dt::Property * > | te::ado::Convert2Terralib (ADOX::ColumnsPtr columns) |
| Bind ADO columns to vector of Terralib properties. | |
| int | te::ado::Convert2Terralib (ADOX::DataTypeEnum adoType) |
| Bind ADOX Type to TerraLib Type. | |
| std::string | te::ado::GetAdoStringType (const int &terralib) |
| Bind TerraLib type to an ADO valid fiel type name. | |
| 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. | |
| std::string | te::ado::GetFormattedDateTime (te::dt::DateTime *dateTime) |
| It gets a formatted DateTime string for ADO. | |
| const std::string & | te::ado::GetGeometryName (te::gm::GeomType t) |
| It returns the geometry OGC names. | |
| const te::gm::GeomType | te::ado::GetGeometryType (std::string t) |
| It returns the geometry type concerning the OGC name. | |
| int | te::ado::GetMonth (const std::string &month) |
| It gets the index of a month. | |
| int | te::ado::GetSRID (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
| Read the geometry_columns table end return a SRID. | |
| 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. | |
| te::gm::GeomType | te::ado::GetType (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
| Read the geometry_columns table end return a geometry type. | |
| bool | te::ado::IsGeomProperty (_ConnectionPtr adoConn, std::string tableName, std::string columnName) |
| Verifies whether is in the geometry_columns table. | |
| bool | te::ado::IsZProperty (te::gm::GeomType type) |
| Verifies whether Z property. | |
| std::string | te::ado::MakeConnectionStr (const te::core::URI &connInfo) |
| Create a connection string based on a map. | |
| void | te::ado::Variant2Blob (const _variant_t var, int size, char *&blob) |
| Convert a variant to a blob. | |
Utility functions for ADO.
Definition in file Utils.h.