26 #ifndef __TERRALIB_ADO_INTERNAL_UTILS_H 
   27 #define __TERRALIB_ADO_INTERNAL_UTILS_H 
   30 #include "../common/StringUtils.h" 
   31 #include "../geometry/Geometry.h" 
   40 #import "msado15.dll" \
 
   41   no_namespace rename(
"EOF", 
"EndOfFile")
 
   64     class GeometryProperty;
 
   82     void Blob2Variant(
const char* blob, 
int size, _variant_t & var);
 
  100     void Variant2Blob(
const _variant_t var, 
int size, 
char* & blob);
 
  191     int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName);
 
  213     bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName);
 
  234     std::string 
GetSystemDateTimeFormat(std::string& indAM, std::string& indPM, std::string& sepD, std::string& sepT);
 
  246     std::auto_ptr<te::dt::DateTime> 
GetDateTime(std::string& value, std::string& mask, std::string& sepD, std::string& sepT);
 
  255     int GetMonth(
const std::string& month);
 
  269 #endif  // __TERRALIB_ADO_INTERNAL_UTILS_H 
int Convert2Terralib(ADOX::DataTypeEnum adoType)
Bind ADOX Type to TerraLib Type. 
te::gm::GeomType GetType(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a geometry type. 
bool IsGeomProperty(_ConnectionPtr adoConn, std::string tableName, std::string columnName)
Verifies whether is in the geometry_columns table. 
std::string GetFormattedDateTime(te::dt::DateTime *dateTime)
It gets a formatted DateTime string for ADO. 
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
ADOX::DataTypeEnum Convert2Ado(int terralib)
Bind TerraLib Type to ADO Type. 
int GetSRID(_ConnectionPtr adoConn, std::string tableName, std::string geomPropName)
Read the geometry_columns table end return a SRID. 
Configuration flags for the TerraLib ADO Data Access driver. 
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards. 
std::string MakeConnectionStr(const std::map< std::string, std::string > &dsInfo)
Create a connection string based on a map. 
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code. 
void Variant2Blob(const _variant_t var, int size, char *&blob)
Convert a variant to a blob. 
std::string GetSystemDateTimeFormat(std::string &indAM, std::string &indPM, std::string &sepD, std::string &sepT)
It gets the system Date and Time format. 
It models a property definition. 
void Blob2Variant(const char *blob, int size, _variant_t &var)
Convert a blob to a variant. 
int GetMonth(const std::string &month)
It gets the index of a month. 
bool IsZProperty(te::gm::GeomType type)
Verifies whether Z property. 
Spatial reference system transformation function. 
const std::string & GetGeometryName(te::gm::GeomType t)
It returns the geometry OGC names. 
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. 
const te::gm::GeomType GetGeometryType(std::string t)
It returns the geometry type concerning the OGC name.