| 2397 | |
| 2398 | |
| 2399 | std::string CsvApplication::getPreference(Fl_Preferences *pref, std::string key, std::string def) { |
| 2400 | char val[TCRUNCHER_PREF_VALUE_MAX_LENGTH+1]; |
| 2401 | char *valPtr = val; |
| 2402 | std::string ret; |
| 2403 | |
| 2404 | pref->get(key.c_str(), valPtr, def.c_str(), TCRUNCHER_PREF_VALUE_MAX_LENGTH); |
| 2405 | ret.assign(valPtr); |
| 2406 | return ret; |
| 2407 | } |
| 2408 | |
| 2409 | void CsvApplication::setWorkDir(std::string workDir) { |
| 2410 | this->workDir = workDir; |
no test coverage detected