本文整理汇总了C++中Args::getDelimiter方法的典型用法代码示例。如果您正苦于以下问题:C++ Args::getDelimiter方法的具体用法?C++ Args::getDelimiter怎么用?C++ Args::getDelimiter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Args
的用法示例。
在下文中一共展示了Args::getDelimiter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: decodeSolarNetStatus
void
Interface::interfaceReport(Args& args)
{
const char* delimiter;
const char* timestamp;
delimiter = args.getDelimiter();
if (delimiter == NULL)
{
printf("%-*s : %d\n",
maximumFieldLabelWidth(),
"Device number",
0);
printf("%-*s : 0x%02X\n",
maximumFieldLabelWidth(),
"Device type",
versionResponse_.getInterfaceType());
printf("%-*s : %s, %d.%d.%d",
maximumFieldLabelWidth(),
"Device description",
getModel(),
versionResponse_.getVersionMajor(),
versionResponse_.getVersionMinor(),
versionResponse_.getVersionRelease());
if (versionResponse_.getInterfaceType()
== FRONIUS_INTERFACE_RS_232)
{
printf(", %s", decodeSolarNetStatus());
}
printf("\n");
}
else
{
timestamp = Utils::getTimestamp(args);
delimiter = args.getDelimiter();
CHECK_PTR(delimiter);
printf("%s%s", timestamp, delimiter);
printf("0%s", delimiter);
printf("0x%02X%s", versionResponse_.getInterfaceType(),
delimiter);
printf("%s %d.%d.%d",
getModel(),
versionResponse_.getVersionMajor(),
versionResponse_.getVersionMinor(),
versionResponse_.getVersionRelease());
if (versionResponse_.getInterfaceType()
== FRONIUS_INTERFACE_RS_232)
{
printf(" %s", decodeSolarNetStatus());
}
printf("%s", delimiter);
printf("\n");
}
}
示例2:
void
SensorCard::displayNowHeader(Args& args)
{
const char* delimiter;
delimiter = args.getDelimiter();
CHECK_PTR(delimiter);
printf("Chan. 1 Temperature now%s", delimiter);
printf("Chan. 2 Temperature now%s", delimiter);
printf("Irradiance now%s", delimiter);
printf("Chan. 1 Value now%s", delimiter);
printf("Chan. 2 Value now%s", delimiter);
}
示例3:
void
Interface::reportHeader(Args& args)
{
const char* delimiter;
delimiter = args.getDelimiter();
assert(delimiter != NULL);
printf("Time%s", delimiter);
printf("Device Number%s", delimiter);
printf("Device Type%s", delimiter);
printf("Description%s", delimiter);
printf("\n");
}
示例4: total
void
SensorCard::displayTotalHeader(Args& args)
{
const char* delimiter;
delimiter = args.getDelimiter();
CHECK_PTR(delimiter);
printf("Chan. 1 Minimum Temperature total (F or C)%s", delimiter);
printf("Chan. 1 Maximum Temperature total (F or C)%s", delimiter);
printf("Chan. 2 Minimum Temperature total (F or C)%s", delimiter);
printf("Chan. 2 Maximum Temperature total (F or C)%s", delimiter);
printf("Irradiance Maximum total (Watts/meter2)%s", delimiter);
printf("Chan. 1 Maximum value total%s", delimiter);
printf("Chan. 2 Maximum value total%s", delimiter);
}