本文整理汇总了C++中ParameterNameValueType::SetValueUInt16方法的典型用法代码示例。如果您正苦于以下问题:C++ ParameterNameValueType::SetValueUInt16方法的具体用法?C++ ParameterNameValueType::SetValueUInt16怎么用?C++ ParameterNameValueType::SetValueUInt16使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParameterNameValueType
的用法示例。
在下文中一共展示了ParameterNameValueType::SetValueUInt16方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: data
void CalvinCHPMultiDataFileUpdaterTest::CreateReferenceFile3()
{
CHPMultiDataData data(TEST3_FILE);
vector<ColumnInfo> cols;
ParameterNameValueType nv;
ByteColumn bcol(L"byte");
cols.push_back(bcol);
UByteColumn ubcol(L"ubyte");
cols.push_back(ubcol);
ShortColumn scol(L"short");
cols.push_back(scol);
UShortColumn uscol(L"ushort");
cols.push_back(uscol);
IntColumn icol(L"int");
cols.push_back(icol);
UIntColumn uicol(L"uint");
cols.push_back(uicol);
FloatColumn fcol(L"float");
cols.push_back(fcol);
ASCIIColumn acol(L"ascii", 7);
cols.push_back(acol);
UnicodeColumn tcol(L"text", 10);
cols.push_back(tcol);
ProbeSetMultiDataCopyNumberData e;
ProbeSetMultiDataCytoRegionData c;
data.SetEntryCount(CopyNumberMultiDataType, 4, 10, cols);
data.SetEntryCount(CytoMultiDataType, 2, 10);
CHPMultiDataFileWriter *writer = new CHPMultiDataFileWriter(data);
nv.SetName(L"byte");
nv.SetValueInt8(8);
e.metrics.push_back(nv);
nv.SetName(L"ubyte");
nv.SetValueUInt8(8);
e.metrics.push_back(nv);
nv.SetName(L"short");
nv.SetValueInt16(16);
e.metrics.push_back(nv);
nv.SetName(L"ushort");
nv.SetValueUInt16(16);
e.metrics.push_back(nv);
nv.SetName(L"int");
nv.SetValueInt32(32);
e.metrics.push_back(nv);
nv.SetName(L"uint");
nv.SetValueUInt32(32);
e.metrics.push_back(nv);
nv.SetName(L"float");
nv.SetValueFloat(44.0f);
e.metrics.push_back(nv);
nv.SetName(L"ascii");
nv.SetValueAscii("ascii");
e.metrics.push_back(nv);
nv.SetName(L"text");
nv.SetValueText(L"text");
e.metrics.push_back(nv);
writer->SeekToDataSet(CopyNumberMultiDataType);
e.name = "1";
e.chr = 1;
e.position = 10;
writer->WriteEntry(e);
e.name = "2";
e.chr = 2;
e.position = 20;
writer->WriteEntry(e);
e.name = "3";
e.chr = 3;
e.position = 30;
writer->WriteEntry(e);
e.name = "4";
e.chr = 4;
e.position = 40;
writer->WriteEntry(e);
writer->SeekToDataSet(CytoMultiDataType);
c.name = "1";
c.chr= 1;
c.startPosition = 1;
c.stopPosition = 2;
c.call = 1;
c.confidenceScore = 10.0f;
writer->WriteEntry(c);
//.........这里部分代码省略.........