MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SaveSnapshot

Method SaveSnapshot

source/ParallelPrinter.cpp:234–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void ParallelPrinterCard::SaveSnapshot(class YamlSaveHelper& yamlSaveHelper)
235{
236 YamlSaveHelper::Slot slot(yamlSaveHelper, ParallelPrinterCard::GetSnapshotCardName(), m_slot, 1);
237
238 YamlSaveHelper::Label state(yamlSaveHelper, "%s:\n", SS_YAML_KEY_STATE);
239 yamlSaveHelper.SaveUint(SS_YAML_KEY_INACTIVITY, m_inactivity);
240 yamlSaveHelper.SaveUint(SS_YAML_KEY_IDLELIMIT, m_printerIdleLimit);
241 yamlSaveHelper.SaveString(SS_YAML_KEY_FILENAME, m_szPrintFilename);
242 yamlSaveHelper.SaveBool(SS_YAML_KEY_FILEOPEN, (m_file != NULL) ? true : false);
243 yamlSaveHelper.SaveBool(SS_YAML_KEY_DUMPTOPRINTER, m_bDumpToPrinter);
244 yamlSaveHelper.SaveBool(SS_YAML_KEY_CONVERTENCODING, m_bConvertEncoding);
245 yamlSaveHelper.SaveBool(SS_YAML_KEY_FILTERUNPRINTABLE, m_bFilterUnprintable);
246 yamlSaveHelper.SaveBool(SS_YAML_KEY_APPEND, m_bPrinterAppend);
247 yamlSaveHelper.SaveBool(SS_YAML_KEY_DUMPTOREALPRINTER, m_bEnableDumpToRealPrinter);
248}
249
250bool ParallelPrinterCard::LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT version)
251{

Callers

nothing calls this directly

Calls 3

SaveUintMethod · 0.80
SaveStringMethod · 0.80
SaveBoolMethod · 0.80

Tested by

no test coverage detected