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
| 158 | // @output: |
| 159 | // - bool - True if file path and separator are valid, otherwise False |
| 160 | bool ReaderPrivate::checkParams(const QString& separator) { |
| 161 | if (separator.isEmpty()) { |
| 162 | qDebug() << __FUNCTION__ << "Error - separator could not be empty"; |
| 163 | return false; |
| 164 | } |
| 165 | |
| 166 | return true; |
| 167 | } |
| 168 | |
| 169 | // Split string to elements |
| 170 | // @input: |