A test suit for the DataSource interface. More...
#include <TsDataSource.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Public Attributes | |
| te::gm::Envelope | m_box |
| te::da::DataSourceCapabilities | m_capabilit |
| std::map< std::string, std::string > | m_connInfo |
| std::map< std::string, std::string > | m_connInfoDropDs |
| std::map< std::string, std::string > | m_connInfoExist |
| std::map< std::string, std::string > | m_connInfoNewDs |
| std::string | m_connStr |
| te::da::DataSource * | m_ds |
| std::string | m_dsType |
| te::gm::Geometry * | m_geom |
| te::gm::LinearRing * | m_linearRing |
| te::gm::Polygon * | m_pol |
| te::gm::Point | m_pt |
| std::vector< std::string > | m_vecDtNames |
| std::vector< std::pair< std::string, te::gm::Envelope > > | m_vecDtNamesAndEnvelops |
| std::vector< te::gm::Envelope > | m_vecEnvelops |
| std::vector< std::pair< std::string, te::gm::Envelope > > | m_vecNamesAndRecs |
| std::vector< std::pair< std::string, size_t > > | m_vecNamesSizes |
| std::vector< std::pair< std::string, size_t > > | m_vecNamesSizesRec |
A test suit for the DataSource interface.
....
This test suite will check the following:
Definition at line 56 of file TsDataSource.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsDataSource::setUp | ( | ) |
Definition at line 38 of file attic/unittest/dataaccess/TsDataSource.cpp.
References m_box, m_capabilit, m_connInfo, m_connInfoDropDs, m_connInfoExist, m_connInfoNewDs, m_connStr, m_ds, m_dsType, m_geom, m_pol, m_pt, m_vecDtNames, m_vecDtNamesAndEnvelops, m_vecEnvelops, m_vecNamesAndRecs, m_vecNamesSizes, m_vecNamesSizesRec, TsManagerDataSource::sm_box, TsManagerDataSource::sm_capabilit, TsManagerDataSource::sm_connInfo, TsManagerDataSource::sm_connInfoDropDs, TsManagerDataSource::sm_connInfoExist, TsManagerDataSource::sm_connInfoNewDs, TsManagerDataSource::sm_connStr, TsManagerDataSource::sm_datasource, TsManagerDataSource::sm_dsType, TsManagerDataSource::sm_geom, TsManagerDataSource::sm_pol, TsManagerDataSource::sm_pt, TsManagerDataSource::sm_vecDtNames, TsManagerDataSource::sm_vecDtNamesAndEnvelops, TsManagerDataSource::sm_vecEnvelops, TsManagerDataSource::sm_vecNamesAndRecs, TsManagerDataSource::sm_vecNamesSizes, and TsManagerDataSource::sm_vecNamesSizesRec.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 118 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::close(), te::da::DataSource::isOpened(), and m_ds.
|
protected |
Definition at line 291 of file attic/unittest/dataaccess/TsDataSource.cpp.
|
protected |
Definition at line 237 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::create(), m_connInfoNewDs, and m_dsType.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 258 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::drop(), m_connInfoDropDs, and m_dsType.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 228 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::exists(), m_connInfoExist, m_ds, and m_dsType.
|
protected |
|
protected |
|
protected |
Definition at line 196 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getCapabilities(), and m_ds.
|
protected |
Definition at line 144 of file attic/unittest/dataaccess/TsDataSource.cpp.
|
protected |
Definition at line 170 of file attic/unittest/dataaccess/TsDataSource.cpp.
|
protected |
|
protected |
|
protected |
Definition at line 216 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getConnectionInfo(), and m_ds.
|
protected |
Definition at line 453 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_capabilit, m_ds, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, m_vecDtNames, and p.
|
protected |
Definition at line 489 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::gm::INTERSECTS, m_capabilit, m_ds, m_vecDtNames, m_vecNamesAndRecs, and p.
|
protected |
Definition at line 528 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::dt::Property::getName(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_capabilit, m_ds, m_vecNamesAndRecs, m_vecNamesSizesRec, and p.
|
protected |
Definition at line 359 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::gm::Geometry::computeMBR(), dt, te::dt::GEOMETRY_TYPE, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::da::GetFirstSpatialPropertyPos(), te::dt::Property::getName(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_box, m_capabilit, m_ds, m_geom, m_pol, m_pt, m_vecDtNames, and p.
|
protected |
Definition at line 332 of file attic/unittest/dataaccess/TsDataSource.cpp.
References dt, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetNames(), te::da::DataSource::isOpened(), and m_ds.
|
protected |
Definition at line 564 of file attic/unittest/dataaccess/TsDataSource.cpp.
|
protected |
Definition at line 404 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::gm::Geometry::computeMBR(), dt, te::dt::GEOMETRY_TYPE, te::da::DataSource::getDataSet(), te::da::DataSource::getDataSetNames(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::dt::Property::getName(), te::gm::INTERSECTS, te::da::DataSource::isOpened(), m_box, m_capabilit, m_ds, m_geom, m_pol, m_pt, m_vecDtNames, te::da::DataSource::open(), and p.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 321 of file attic/unittest/dataaccess/TsDataSource.cpp.
References m_connInfo, m_ds, and m_dsType.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 97 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getId(), m_ds, and te::da::DataSource::open().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 206 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getTransactor(), and m_ds.
|
protected |
Definition at line 70 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getType(), m_ds, and m_dsType.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 129 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::isOpened(), and m_ds.
|
protected |
|
protected |
Definition at line 137 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::isValid(), and m_ds.
|
protected |
Definition at line 78 of file attic/unittest/dataaccess/TsDataSource.cpp.
References m_ds, and te::da::DataSource::open().
|
protected |
Definition at line 87 of file attic/unittest/dataaccess/TsDataSource.cpp.
References m_ds, and te::da::DataSource::open().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 278 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getConnectionInfo(), m_connInfo, and m_ds.
|
protected |
Definition at line 108 of file attic/unittest/dataaccess/TsDataSource.cpp.
References te::da::DataSource::getId(), m_ds, and te::da::DataSource::setId().
|
protected |
Definition at line 302 of file attic/unittest/dataaccess/TsDataSource.cpp.
References dialect, te::da::DataSource::getDialect(), and m_ds.
|
protected |
|
protected |
| void TsDataSource::tearDown | ( | ) |
Definition at line 65 of file attic/unittest/dataaccess/TsDataSource.cpp.
References m_ds.
| te::gm::Envelope TsDataSource::m_box |
Definition at line 279 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| te::da::DataSourceCapabilities TsDataSource::m_capabilit |
Definition at line 262 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByEnvRec2(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| std::map<std::string, std::string> TsDataSource::m_connInfo |
Definition at line 263 of file TsDataSource.h.
Referenced by setUp(), tcGetEncodings(), and tcSetConnectionInfo().
| std::map<std::string, std::string> TsDataSource::m_connInfoDropDs |
Definition at line 269 of file TsDataSource.h.
| std::map<std::string, std::string> TsDataSource::m_connInfoExist |
Definition at line 264 of file TsDataSource.h.
| std::map<std::string, std::string> TsDataSource::m_connInfoNewDs |
Definition at line 268 of file TsDataSource.h.
Referenced by setUp(), and tcCreate().
| std::string TsDataSource::m_connStr |
Definition at line 266 of file TsDataSource.h.
Referenced by setUp().
| te::da::DataSource* TsDataSource::m_ds |
Definition at line 260 of file TsDataSource.h.
Referenced by setUp(), tcClose(), tcExist(), tcGetCapabilities(), tcGetConnectionInfo(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByEnvRec2(), tcGetDataSetByGeometry(), tcGetDataSetByName(), tcGetDataSetByProperty(), tcGetEncodings(), tcGetId(), tcGetTransactor(), tcGetType(), tcIsOpened(), tcIsValid(), tcOpenWithMap(), tcOpenWithStr(), tcSetConnectionInfo(), tcSetId(), tcSQLDialect(), and tearDown().
| std::string TsDataSource::m_dsType |
Definition at line 267 of file TsDataSource.h.
Referenced by setUp(), tcCreate(), tcDrop(), tcExist(), tcGetEncodings(), and tcGetType().
| te::gm::Geometry* TsDataSource::m_geom |
Definition at line 283 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| te::gm::LinearRing* TsDataSource::m_linearRing |
Definition at line 281 of file TsDataSource.h.
| te::gm::Polygon* TsDataSource::m_pol |
Definition at line 282 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| te::gm::Point TsDataSource::m_pt |
Definition at line 280 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| std::vector<std::string> TsDataSource::m_vecDtNames |
Definition at line 272 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByEnvRec(), tcGetDataSetByEnvRec1(), tcGetDataSetByGeometry(), and tcGetDataSetByProperty().
| std::vector<std::pair<std::string, te::gm::Envelope> > TsDataSource::m_vecDtNamesAndEnvelops |
Definition at line 274 of file TsDataSource.h.
Referenced by setUp().
| std::vector<te::gm::Envelope> TsDataSource::m_vecEnvelops |
Definition at line 273 of file TsDataSource.h.
Referenced by setUp().
| std::vector<std::pair<std::string, te::gm::Envelope> > TsDataSource::m_vecNamesAndRecs |
Definition at line 275 of file TsDataSource.h.
Referenced by setUp(), tcGetDataSetByEnvRec1(), and tcGetDataSetByEnvRec2().
| std::vector<std::pair<std::string, size_t> > TsDataSource::m_vecNamesSizes |
Definition at line 276 of file TsDataSource.h.
Referenced by setUp().
| std::vector<std::pair<std::string, size_t> > TsDataSource::m_vecNamesSizesRec |
Definition at line 277 of file TsDataSource.h.
Referenced by setUp(), and tcGetDataSetByEnvRec2().