Check if file path and separator are valid @input: - separator - string or character that separate values in a row @output: - bool - True if file path and separator are valid, otherwise False
| 181 | // @output: |
| 182 | // - bool - True if file path and separator are valid, otherwise False |
| 183 | bool ReaderPrivate::checkParams(const QString& separator) |
| 184 | { |
| 185 | if (separator.isEmpty()) |
| 186 | { |
| 187 | qDebug() << __FUNCTION__ << "Error - separator could not be empty"; |
| 188 | return false; |
| 189 | } |
| 190 | |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | // Split string to elements |
| 195 | // @input: |