本文整理汇总了C++中AppSettings::getValue方法的典型用法代码示例。如果您正苦于以下问题:C++ AppSettings::getValue方法的具体用法?C++ AppSettings::getValue怎么用?C++ AppSettings::getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppSettings
的用法示例。
在下文中一共展示了AppSettings::getValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: loadSettings
//!
//! @param settings - Object to load settings from
//!
void AdvancedPanel::loadSettings(const AppSettings &settings) {
print("AdvancedPanel::loadSettings()\n");
// Init();
bdmOptions.powerOffDuration = settings.getValue(powerOffDurationKey, bdmOptions.powerOffDuration);
bdmOptions.powerOnRecoveryInterval = settings.getValue(powerOnRecoveryIntervalKey, bdmOptions.powerOnRecoveryInterval);
bdmOptions.resetDuration = settings.getValue(resetDurationKey, bdmOptions.resetDuration);
bdmOptions.resetReleaseInterval = settings.getValue(resetReleaseIntervalKey, bdmOptions.resetReleaseInterval);
bdmOptions.resetRecoveryInterval = settings.getValue(resetRecoveryIntervalKey, bdmOptions.resetRecoveryInterval);
#if (TARGET==CFV1) || (TARGET==ARM) || (TARGET==ARM_SWD)
int eepromSize = settings.getValue(eeepromSizeKey, 0);
eeepromSizeChoice = findEeepromSizeIndex(eepromSize);
if (eeepromSizeChoice == 0) {
flexNvmPartitionIndex = 0;
}
else {
int partitionSize = settings.getValue(flexNvmPartitionSizeKey, 0);
flexNvmPartitionIndex = findPartitionControlIndex(partitionSize);
}
#endif
TransferDataToWindow();
}