本文整理汇总了C++中AppSettings::s_step方法的典型用法代码示例。如果您正苦于以下问题:C++ AppSettings::s_step方法的具体用法?C++ AppSettings::s_step怎么用?C++ AppSettings::s_step使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppSettings
的用法示例。
在下文中一共展示了AppSettings::s_step方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetEventSVelRange
void CalculateVelocityHandler::GetEventSVelRange(float &start, float &end, float &step)
{
AppSettings setting = ConfigManager::GetInstance()->AppSetting();
start = setting.s_start();
end = setting.s_end();
step = setting.s_step();
}
示例2: GetPSVelSetupUiData
void VelParaSetupHandler::GetPSVelSetupUiData(PSVelSetupPara ¶)
{
AppSettings setting = ConfigManager::GetInstance()->AppSetting();
para.p_start = setting.p_start();
para.p_end = setting.p_end();
para.s_start = setting.s_start();
para.s_end = setting.s_end();
para.plus_per = setting.plus_per();
para.minus_per = setting.minus_per();
para.layer_info = setting.layer_info();
para.p_step = setting.p_step();
para.s_step = setting.s_step();
para.p_divide_by_s = setting.p_divide_by_s();
}
示例3: GetChannelSVelRange
bool CalculateVelocityHandler::GetChannelSVelRange(float &start, float &end, float &step)
{
AppSettings setting = ConfigManager::GetInstance()->AppSetting();
float p_vel;
float s_vel;
if (!GetEventAdjustVel(p_vel, s_vel))
{
return false;
}
start = s_vel * (100 + setting.minus_per()) / 100;
end = s_vel * (100 + setting.plus_per()) / 100;
step = setting.s_step();
return true;
}