src/csv_table_reader.cpp
//------------------------------------------------------------------------------
/*! \brief Helper function
 *
 *  Get the next line that doesn't start with a semicolon.
 */
\brief Helper function
Get the next line that doesn't start with a semicolon.
\ brief Helper function Get the next line that doesn ' t start with a semicolon .
string CSVTableReader::csv_getline() {
    string s;
    bool semicolon = true;
    bool hash = true;
    while( ( semicolon || hash ) && !tableInputStream.eof() && tableInputStream.peek() != -1 ) {
        getline( tableInputStream, s ); 
        ++lineNum;
        semicolon = s[ 0 ] == ';';
        hash = s[ 0 ] == '#';
    }
    return s;
}
string CSVTableReader :: csv_getline ( ) { string s ; bool semicolon = true ; bool hash = true ; while ( ( semicolon || hash ) && ! tableInputStream . eof ( ) && tableInputStream . peek ( ) != -1 ) { getline ( tableInputStream , s ) ; ++ lineNum ; semicolon = s [ 0 ] == ' ' ; hash = s [ 0 ] == ' ' ; } return s ; }
\brief Helper function
  Get the next line that doesn't start with a semicolon.
\ brief Helper function Get the next line that doesn ' t start with a semicolon .
//TODO: this depends on Unix line endings