本文整理汇总了C++中DeviceInterface::deviceGetName方法的典型用法代码示例。如果您正苦于以下问题:C++ DeviceInterface::deviceGetName方法的具体用法?C++ DeviceInterface::deviceGetName怎么用?C++ DeviceInterface::deviceGetName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DeviceInterface
的用法示例。
在下文中一共展示了DeviceInterface::deviceGetName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: printDeviceHeader
void printDeviceHeader(OutputStream* outputStream, Device* device) {
DeviceInterface* deviceInterface = device->deviceInterface;;
const char* deviceName = deviceInterface->deviceGetName();
println(outputStream);
appendTableHeaderSeparatorLine(outputStream);
int length = appendStringTableData(outputStream, deviceName, 0);
unsigned char deviceHeader = deviceInterface->deviceHeader;
appendString(outputStream, " : ");
append(outputStream, deviceHeader);
appendSpaces(outputStream, PRINT_TABLE_WRITER_DEFAULT_PAGE_CHAR_WIDTH - length - 5);
appendTableSeparator(outputStream);
println(outputStream);
// Table Header
appendTableHeaderSeparatorLine(outputStream);
appendStringHeader(outputStream, "h", DEVICE_USAGE_HEADER_COLUMN_LENGTH);
appendStringHeader(outputStream, "name", DEVICE_USAGE_NAME_COLUMN_LENGTH);
appendStringHeader(outputStream, "I/0", DEVICE_USAGE_IO_COLUMN_LENGTH);
appendStringHeader(outputStream, "L ", DEVICE_USAGE_IO_SIZE_COLUMN_LENGTH);
appendStringHeader(outputStream, "param/res name", DEVICE_USAGE_PARAM_NAME_COLUMN_LENGTH);
appendStringHeader(outputStream, "L", DEVICE_USAGE_PARAM_SIZE_COLUMN_LENGTH);
appendStringHeader(outputStream, "type", DEVICE_USAGE_PARAM_TYPE_COLUMN_LENGTH);
appendTableSeparator(outputStream);
println(outputStream);
appendTableHeaderSeparatorLine(outputStream);
}