Namespace for the TerraLib ADO driver implementation. More...
Classes | |
| class | Connection |
| A class that implements a connection to a ADO database. More... | |
| class | DataSet |
| Implementation of a dataset for the ADO driver. More... | |
| class | DataSource |
| The ADO driver. More... | |
| class | Globals |
| An static class with global definitions. More... | |
| class | Module |
| class | SQLVisitor |
| A visitor for building an SQL statement using ADO dialect. More... | |
| class | Transactor |
| The transactor class for the Microsoft Access driver. More... | |
Functions | |
| void | Blob2Variant (const char *blob, int size, _variant_t &var) |
| Convert a blob to a variant. More... | |
| te::da::DataSource * | Build () |
| ADOX::DataTypeEnum | Convert2Ado (int terralib) |
| Bind TerraLib Type to ADO Type. More... | |
| void | Convert2Ado (const te::gm::Geometry *geo, _variant_t &var) |
| Bind TerraLib geometry to ADO variant. More... | |
| int | Convert2Terralib (ADOX::DataTypeEnum adoType) |
| Bind ADOX Type to TerraLib Type. More... | |
| int | Convert2Terralib (::DataTypeEnum adoType) |
| Bind ADO Type to TerraLib Type. More... | |
| te::dt::Property * | Convert2Terralib (ADOX::_ColumnPtr column) |
| Bind ADO column to Terralib property. More... | |
| te::da::Constraint * | Convert2Terralib (ADOX::_KeyPtr key) |
| Bind ADO key to Terralib constraint. More... | |
| std::vector< te::dt::Property * > | Convert2Terralib (ADOX::ColumnsPtr columns) |
| Bind ADO columns to vector of Terralib properties. More... | |
| std::string | GetAdoStringType (const int &terralib) |
| Bind TerraLib type to an ADO valid fiel type name. More... | |
| std::auto_ptr< te::dt::DateTime > | GetDateTime (std::string &value, std::string &mask, std::string &sepD, std::string &sepT) |
| It gets the DateTime TerraLib 5 from string. More... | |
| std::string | GetFormattedDateTime (te::dt::DateTime *dateTime) |
| It gets a formatted DateTime string for ADO. More... | |
| const std::string & | GetGeometryName (te::gm::GeomType t) |
| It returns the geometry OGC names. More... | |
| const te::gm::GeomType | GetGeometryType (std::string t) |
| It returns the geometry type concerning the OGC name. More... | |
| int | GetMonth (const std::string &month) |
| It gets the index of a month. More... | |
| int | GetSRID (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
| Read the geometry_columns table end return a SRID. More... | |
| std::string | 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 | GetType (_ConnectionPtr adoConn, std::string tableName, std::string geomPropName) |
| Read the geometry_columns table end return a geometry type. More... | |
| bool | IsGeomProperty (_ConnectionPtr adoConn, std::string tableName, std::string columnName) |
| Verifies whether is in the geometry_columns table. More... | |
| bool | IsZProperty (te::gm::GeomType type) |
| Verifies whether Z property. More... | |
| std::string | MakeConnectionStr (const std::map< std::string, std::string > &dsInfo) |
| Create a connection string based on a map. More... | |
| void | Variant2Blob (const _variant_t var, int size, char *&blob) |
| Convert a variant to a blob. More... | |
Namespace for the TerraLib ADO driver implementation.
| void te::ado::Blob2Variant | ( | const char * | blob, |
| int | size, | ||
| _variant_t & | var | ||
| ) |
Convert a blob to a variant.
| blob | Blob |
| size | Blob size |
| var | Result variant |
|
inline |
Definition at line 36 of file DataSourceFactory.h.
| ADOX::DataTypeEnum te::ado::Convert2Ado | ( | int | terralib | ) |
| void te::ado::Convert2Ado | ( | const te::gm::Geometry * | geo, |
| _variant_t & | var | ||
| ) |
| int te::ado::Convert2Terralib | ( | ADOX::DataTypeEnum | adoType | ) |
| int te::ado::Convert2Terralib | ( | ::DataTypeEnum | adoType | ) |
| te::dt::Property* te::ado::Convert2Terralib | ( | ADOX::_ColumnPtr | column | ) |
| te::da::Constraint* te::ado::Convert2Terralib | ( | ADOX::_KeyPtr | key | ) |
| std::vector<te::dt::Property*> te::ado::Convert2Terralib | ( | ADOX::ColumnsPtr | columns | ) |
Bind ADO columns to vector of Terralib properties.
| columns | Ado columns. |
| std::string te::ado::GetAdoStringType | ( | const int & | terralib | ) |
| std::auto_ptr<te::dt::DateTime> te::ado::GetDateTime | ( | std::string & | value, |
| std::string & | mask, | ||
| std::string & | sepD, | ||
| std::string & | sepT | ||
| ) |
| std::string te::ado::GetFormattedDateTime | ( | te::dt::DateTime * | dateTime | ) |
It gets a formatted DateTime string for ADO.
| dateTime | TerraLib 5 DateTime. |
| const std::string& te::ado::GetGeometryName | ( | te::gm::GeomType | t | ) |
It returns the geometry OGC names.
| t | The TerraLib geometry type. |
| const te::gm::GeomType te::ado::GetGeometryType | ( | std::string | t | ) |
It returns the geometry type concerning the OGC name.
| t | The OGC type name |
| int te::ado::GetMonth | ( | const std::string & | month | ) |
It gets the index of a month.
| month | Month name. |
| int te::ado::GetSRID | ( | _ConnectionPtr | adoConn, |
| std::string | tableName, | ||
| std::string | geomPropName | ||
| ) |
Read the geometry_columns table end return a SRID.
| adoConn | Ado connection. |
| tableName | The table name. |
| geomPropName | The geometry property name. |
| 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.
| indAM | AM indicator string. |
| indPM | PM indicator string. |
| sepD | Date separator. |
| sepT | Time separator. |
| te::gm::GeomType te::ado::GetType | ( | _ConnectionPtr | adoConn, |
| std::string | tableName, | ||
| std::string | geomPropName | ||
| ) |
Read the geometry_columns table end return a geometry type.
| adoConn | Ado connection. |
| tableName | The table name. |
| geomPropName | The geometry property name. |
| bool te::ado::IsGeomProperty | ( | _ConnectionPtr | adoConn, |
| std::string | tableName, | ||
| std::string | columnName | ||
| ) |
Verifies whether is in the geometry_columns table.
| adoConn | Ado connection |
| tableName | Ado table name |
| columnName | Ado column name |
| bool te::ado::IsZProperty | ( | te::gm::GeomType | type | ) |
Verifies whether Z property.
| type | geometry type |
| std::string te::ado::MakeConnectionStr | ( | const std::map< std::string, std::string > & | dsInfo | ) |
Create a connection string based on a map.
| dsInfo | Information Map. |
| void te::ado::Variant2Blob | ( | const _variant_t | var, |
| int | size, | ||
| char *& | blob | ||
| ) |
Convert a variant to a blob.
| var | Variant |
| size | Variant size |
| blob | Result variant |