sqldata/sqldata.cpp
// Check whether data of the table already transferred
Check whether data of the table already transferred
Check whether data of the table already transferred
bool SqlData::IsDataTransferred(std::string &table)
{
	std::list<std::string>::iterator i = std::find(_tables_in_progress.begin(), _tables_in_progress.end(), table);
	if(i != _tables_in_progress.end())
		return false;
	if(_tables != NULL)
	{
		i = std::find(_tables->begin(), _tables->end(), table);
		if(i != _tables->end())
			return false;
	}
	return true;
}
bool SqlData :: IsDataTransferred ( std :: string & table ) { std :: list < std :: string > :: iterator i = std :: find ( _tables_in_progress . begin ( ) , _tables_in_progress . end ( ) , table ) ; if ( i != _tables_in_progress . end ( ) ) return false ; if ( _tables != NULL ) { i = std :: find ( _tables -> begin ( ) , _tables -> end ( ) , table ) ; if ( i != _tables -> end ( ) ) return false ; } return true ; }
Check whether data of the table already transferred
Check whether data of the table already transferred
// Check tables that are in progress now // Check tables that are not selected yet