MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / getPreference

Method getPreference

src/csvapplication.cpp:2399–2407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2397
2398
2399std::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
2409void CsvApplication::setWorkDir(std::string workDir) {
2410 this->workDir = workDir;

Callers 8

initMethod · 0.80
readWindowPreferencesMethod · 0.80
mainFunction · 0.80
CsvApplicationMethod · 0.80
AppMenuPreferencesCBMethod · 0.80
addNewMacroCBMethod · 0.80
deleteMacroCBMethod · 0.80
executeMacroListCBMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected