Class with methods to manage the application. More...
#include <DSCopy.h>
Public Member Functions | |
bool | copy (std::string dsTypeOrigin, std::string dsConnStrOrigin, std::string dsTypeDestination, std::string dsConnStrDestination, std::vector< std::string * > datasets, std::string &errorMessage) |
Copy. More... | |
bool | copy (te::da::DataSource *dsOrigin, te::da::DataSource *dsDestination, std::vector< std::string * > datasets, std::string &errorMessage) |
Copy. More... | |
bool | init (std::string &errorMessage) |
Init the application. More... | |
Private Member Functions | |
bool | copyDataSets (te::da::DataSource *dsOrigin, te::da::DataSource *dsDestination, std::vector< std::string * > datasets, std::string &errorMessage) |
Copy a list of Data Sets. More... | |
bool te::tools::dscopy::DSCopy::copy | ( | std::string | dsTypeOrigin, |
std::string | dsConnStrOrigin, | ||
std::string | dsTypeDestination, | ||
std::string | dsConnStrDestination, | ||
std::vector< std::string * > | datasets, | ||
std::string & | errorMessage | ||
) |
Copy.
dsTypeOrigin | The type of the origin Data Source |
dsConnStrOrigin | Origin Data Source connection string |
dsTypeDestination | The type of the destination Data Source |
dsConnStrDestination | Destination Data SourceConnection string |
datasets | DataSet names |
errorMessage | String that receive errors description |
Definition at line 41 of file DSCopy.cpp.
References te::da::DataSourceFactory::make(), and te::da::DataSource::open().
Referenced by te::tools::dscopy::DSCopyDialogController::copy(), and main().
bool te::tools::dscopy::DSCopy::copy | ( | te::da::DataSource * | dsOrigin, |
te::da::DataSource * | dsDestination, | ||
std::vector< std::string * > | datasets, | ||
std::string & | errorMessage | ||
) |
Copy.
dsOrigin | The origin Data Source |
dsDestination | The destination Data Source |
datasets | DataSet names |
errorMessage | String that receive errors description |
Definition at line 72 of file DSCopy.cpp.
|
private |
Copy a list of Data Sets.
dsOrigin | The origin Data Source |
dsDestination | The destination Data Source |
datasets | DataSet names |
errorMessage | String that receive errors description |
Definition at line 77 of file DSCopy.cpp.
References te::da::DataSourceTransactor::getDataSet(), te::da::DataSourceTransactor::getDataSetType(), te::da::DataSource::getTransactor(), and te::da::DataSource::getType().
bool te::tools::dscopy::DSCopy::init | ( | std::string & | errorMessage | ) |
Init the application.
errorMessage | String that receive errors description |
Definition at line 36 of file DSCopy.cpp.
References te::tools::dscopy::Utils::loadModules().
Referenced by main().