void ofxTLKeyframes::load(){ clear(); if(useBinarySave){ loadFromBinaryFile(); } else{ ofxXmlSettings savedkeyframes; if(!savedkeyframes.loadFile(xmlFileName)){ ofLog(OF_LOG_NOTICE, "ofxTLKeyframes --- couldn't load xml file " + xmlFileName); return; } createKeyframesFromXML(savedkeyframes, keyframes); } updateKeyframeSort(); timeline->flagTrackModified(this); }
SuffixModelTrieBinaryFileReader::SuffixModelTrieBinaryFileReader(Dictionary* _dic) : SuffixModelTrie(_dic) { try { loadFromBinaryFile(dic->getPathToData() + BINARY_SUFFIX_PATH); } catch (int e) { if (e == FILE_NOT_FOUND_ERROR_CODE) { wcout << "Error : File not found : " << BINARY_SUFFIX_PATH << endl; #ifdef MSVC _getch(); #endif exit(0); } } }
/** * Constructor of DictionaryTrieBinaryFileReader */ DictionaryTrieBinaryFileReader::DictionaryTrieBinaryFileReader(Dictionary* _dic, string dictionaryFile) : DictionaryTrieBinaryFileCreator(_dic) { try { loadFromBinaryFile(dic->getPathToData() + dictionaryFile); } catch (int e) { if (e == FILE_NOT_FOUND_ERROR_CODE) { wcout << "Error : Dictionary binary data file not found : " << endl; #ifdef MSVC _getch(); #endif exit(0); } } }