Backend/Database/GTable.cpp
/*!
 * @brief GTable path/delimiter/flag constructor
 * @details Creates a GTable from a given path, delimiter, and import flag.
 * @param fname the path (URL, file path, or string) containing the data
 * @param newDelimiter the specified table delimiter
 * @param importFlag an import flag, specifying fname as either a file path, URL, or raw string
 */
@brief GTable path/delimiter/flag constructor
@details Creates a GTable from a given path, delimiter, and import flag.
@param fname the path (URL, file path, or string) containing the data
@param newDelimiter the specified table delimiter
@param importFlag an import flag, specifying fname as either a file path, URL, or raw string
@brief GTable path / delimiter / flag constructor @details Creates a GTable from a given path delimiter and import flag . @param fname the path ( URL file path or string ) containing the data @param newDelimiter the specified table delimiter @param importFlag an import flag specifying fname as either a file path URL or raw string
GTable::GTable(const GString& fname, char newDelimiter, int importFlag)
{
	clear();
	delimiter = newDelimiter;
	if (importFlag == TYPE_FILE)
		importFromFile(fname);
	else if (importFlag == TYPE_STRING)
		importFromString(fname);
}
GTable :: GTable ( const GString & fname , char newDelimiter , int importFlag ) { clear ( ) ; delimiter = newDelimiter ; if ( importFlag == TYPE_FILE ) importFromFile ( fname ) ; else if ( importFlag == TYPE_STRING ) importFromString ( fname ) ; }
@brief GTable path/delimiter/flag constructor
 @details Creates a GTable from a given path, delimiter, and import flag.
@brief GTable path / delimiter / flag constructor @details Creates a GTable from a given path delimiter and import flag .