本文整理汇总了C++中Converter::IsomerEnergyToHuman方法的典型用法代码示例。如果您正苦于以下问题:C++ Converter::IsomerEnergyToHuman方法的具体用法?C++ Converter::IsomerEnergyToHuman怎么用?C++ Converter::IsomerEnergyToHuman使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Converter
的用法示例。
在下文中一共展示了Converter::IsomerEnergyToHuman方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EPSSetText
//.........这里部分代码省略.........
else if (draw.chart_colour == ChartColour::GS_DECAYMODE)
{
*text = "1 TR (Stable) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (Alpha) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 S (b) TotalWidth sh\n0.5 TR 0 0.55 rmoveto (+) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 S (b) TotalWidth sh\n0.75 TR 0 0.55 rmoveto (-) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (Spontaneous Fission)TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (n decay) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (2n decay) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (p decay) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (2p decay) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (Unknown) TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (Electron Capture) TotalWidth sh TestWidth\n";
}
else if (draw.chart_colour == ChartColour::GS_HALFLIFE)
{
std::string low = convert.SecondsToHuman(part.values[0].value);
std::string high = convert.SecondsToHuman(part.values[1].value);
*text = "printUnit 1 TR ( < ";
*text += low;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (";
*text += low;
*text += " < ) TotalWidth sh printUnit\n( < ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
int index = 1;
while ((text - std::begin(textStrings)) < static_cast<int>(part.values.size() - 1))
{
low = high;
high = convert.SecondsToHuman(part.values[index + 1].value);
*text = "1 TR (";
*text += low;
*text += " < ) TotalWidth sh printUnit\n( < ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
++index;
}
*text = "printUnit 1 TR ( > ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
}
else if (draw.chart_colour == ChartColour::FIRST_ISOMERENERGY)
{
auto low = convert.IsomerEnergyToHuman(part.values[0].value);
auto high = convert.IsomerEnergyToHuman(part.values[1].value);
*text = "1 TR (E < ";
*text += low;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (";
*text += low;
*text += " < E < ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
int index = 2;
while ((text - std::begin(textStrings)) < static_cast<int>(part.values.size() - 2))
{
low = high;
high = convert.IsomerEnergyToHuman(part.values[index].value);
*text = "1 TR (";
*text += low;
*text += " < E < ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
++index;
}
*text = "1 TR (E > ";
*text += high;
*text += ") TotalWidth sh TestWidth\n";
std::advance(text, 1);
*text = "1 TR (No known isomer) TotalWidth sh TestWidth\n";
}
}