Backend/Database/GTable.cpp
/*!
 * @brief append two GTables
 * @details append table2 rows onto this
 * @param table2 the table to append onto this
 */
@brief append two GTables
@details append table2 rows onto this
@param table2 the table to append onto this
@brief append two GTables @details append table2 rows onto this @param table2 the table to append onto this
void GTable::append(const GTable& table2)
{
	if ((table2.numberOfRows() <= 0) || (table2.numberOfCols() <= 0))
		return;
	if ((numberOfRows() > 0) && (numberOfCols() != table2.numberOfCols()))
		return;
	if (numberOfRows() == 0)
	{
		copy(table2);
		return;
	}
	for (unsigned int r = 0; r < table2.numberOfRows(); ++r)
		addRow(table2.getRow(r));
	setHeaders(table2.getHeaders());
}
void GTable :: append ( const GTable & table2 ) { if ( ( table2 . numberOfRows ( ) <= 0 ) || ( table2 . numberOfCols ( ) <= 0 ) ) return ; if ( ( numberOfRows ( ) > 0 ) && ( numberOfCols ( ) != table2 . numberOfCols ( ) ) ) return ; if ( numberOfRows ( ) == 0 ) { copy ( table2 ) ; return ; } for ( unsigned int r = 0 ; r < table2 . numberOfRows ( ) ; ++ r ) addRow ( table2 . getRow ( r ) ) ; setHeaders ( table2 . getHeaders ( ) ) ; }
@brief append two GTables
 @details append table2 rows onto this
 @param table2 the table to append onto this
@brief append two GTables @details append table2 rows onto this @param table2 the table to append onto this
// Short circuiting // add each row, we should change this to copy a block of mem // add the headers // add the outputs /*for (unsigned int i = numberOfCols(); i < table2.numberOfCols(); ++i)
	{
		if (table2.isOutput(i))
			toggleOutput(i);
	}*/