// <bool> void SettingLoader::load_ARGUMENT(BooleanType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': must be true or false."); }
// <ARGUMENT> void SettingLoader::load_ARGUMENT(LogicalOperatorType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': must be 'or' or 'and'."); }
// <ARGUMENT_SHOW_WINDOW> void SettingLoader::load_ARGUMENT(ShowCommandType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': unknown show command."); }
// <ARGUMENT_LOCK> void SettingLoader::load_ARGUMENT(ToggleType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': unknown toggle name."); }
// <ARGUMENT> void SettingLoader::load_ARGUMENT(MayuDialogType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': unknown dialog box."); }
// <ARGUMENT> void SettingLoader::load_ARGUMENT(MouseHookType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': unknown MouseHookType symbol."); }
void SymTypeSubrange::PrintSymbol(int d) { Symbol::PrintSymbol(d); printPart("subrange", TYPE_LEN); printPart("", VALUE_LEN); printPart(getTypeValue(), COLUMN_LEN); printPart(to_string(d), TABLE_IDX_LEN); }
// <ARGUMENT> void SettingLoader::load_ARGUMENT(WindowMonitorFromType *o_arg) { Token *t = getToken(); if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': unknown monitor from type."); }
// <ARGUMENT_WINDOW> void SettingLoader::load_ARGUMENT(ToWindowType *o_arg) { Token *t = getToken(); if (t->isNumber()) { if (ToWindowType_toBegin <= t->getNumber()) { *o_arg = static_cast<ToWindowType>(t->getNumber()); return; } } else if (getTypeValue(o_arg, t->getString())) return; throw ErrorMessage() << _T("`") << *t << _T("': invalid target window."); }