本文整理汇总了C++中GenericDataHeader::SetFileId方法的典型用法代码示例。如果您正苦于以下问题:C++ GenericDataHeader::SetFileId方法的具体用法?C++ GenericDataHeader::SetFileId怎么用?C++ GenericDataHeader::SetFileId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericDataHeader
的用法示例。
在下文中一共展示了GenericDataHeader::SetFileId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddStandardGenericDataHeader
void TestFileGenerator::AddStandardGenericDataHeader(GenericDataHeader& gdh)
{
// Fill the GenericDataHeader.
gdh.SetFileTypeId(SCAN_ACQUISITION_DATA_TYPE);
gdh.SetFileId("test-dat-guid");
gdh.SetFileCreationTime(L"2004-07-04T11:12:13Z");
gdh.SetLocale(L"en-US");
ParameterNameValueType nvt;
nvt.SetName(ARRAY_TYPE_PARAM_NAME);
nvt.SetValueText(L"Hg-U133A");
gdh.AddNameValParam(nvt);
nvt.SetName(ARRAY_BARCODE_PARAM_NAME);
nvt.SetValueText(L"Barcode");
gdh.AddNameValParam(nvt);
nvt.SetName(L"Parameter1");
nvt.SetValueText(L"Value1");
gdh.AddNameValParam(nvt);
GenericDataHeader gdhParent;
gdhParent.SetFileTypeId(ARRAY_TYPE_IDENTIFIER);
gdhParent.SetFileId("test-array-guid");
gdhParent.SetFileCreationTime(L"2004-07-01T13:14:15Z");
gdhParent.SetLocale(L"en-US");
nvt.SetName(ARRAY_TYPE_PARAM_NAME);
nvt.SetValueText(L"Hg-U133A");
gdhParent.AddNameValParam(nvt);
nvt.SetName(ARRAY_LOT_PARAM_NAME);
nvt.SetValueText(L"Thanks alot");
gdhParent.AddNameValParam(nvt);
gdh.AddParent(gdhParent);
}
示例2: WriteSmallCelFileWithAPartialDatHeaderTest
void TestFileGenerator::WriteSmallCelFileWithAPartialDatHeaderTest()
{
CelFileData data("small_cel_file_partial_datheader");
// Write
ParameterNameValueType nvt;
GenericDataHeader datHdr;
datHdr.SetFileId(AffymetrixGuid::GenerateNewGuid());
datHdr.SetFileTypeId("affymetrix-calvin-scan-acquisition");
datHdr.SetFileCreationTime(L"2004-07-01T13:14:15Z");
nvt.SetName(L"affymetrix-partial-dat-header");
std::wstring datHeaderString = L" small_cel_file_partial_datheader:CLS=25 RWS=25 XIN=1 YIN=1 VE=0 0 05/19/05 02:45:59 ScannerID: ScannerTyp \x14 \x14 Hg-Small.1sq \x14 \x14 \x14 \x14 \x14 570 \x14 45.200001 \x14 0.340000 \x14 1.0900 \x14 3";
nvt.SetValueText(datHeaderString);
datHdr.AddNameValParam(nvt);
nvt.SetName(L"affymetrix-max-pixel-intensity");
nvt.SetValueUInt16(46001);
datHdr.AddNameValParam(nvt);
nvt.SetName(L"affymetrix-min-pixel-intensity");
nvt.SetValueUInt16(1);
datHdr.AddNameValParam(nvt);
// Add DAT GenericDataHeader as parent.
data.GetFileHeader()->GetGenericDataHdr()->AddParent(datHdr);
WriteRemaingSmallCelFileWithGridParameters(data);
}
示例3: WriteSmallCelFileWithAFullDatHeaderTest
void TestFileGenerator::WriteSmallCelFileWithAFullDatHeaderTest() // Files converted from GCOS will have a full DatHeader
{
CelFileData data("small_cel_file_full_datheader");
// Write
ParameterNameValueType nvt;
GenericDataHeader datHdr;
datHdr.SetFileId(AffymetrixGuid::GenerateNewGuid());
datHdr.SetFileTypeId("affymetrix-calvin-scan-acquisition");
datHdr.SetFileCreationTime(L"2004-07-01T13:14:15Z");
nvt.SetName(L"affymetrix-dat-header");
std::wstring datHeaderString = L"[45..56789] small_cel_file_full_datheader:CLS=25 RWS=25 XIN=1 YIN=1 VE=0 0 05/19/05 02:45:59 ScannerID: ScannerTyp \x14 \x14 Hg-Small.1sq \x14 \x14 \x14 \x14 \x14 570 \x14 45.200001 \x14 0.340000 \x14 1.0900 \x14 3";
nvt.SetValueText(datHeaderString);
datHdr.AddNameValParam(nvt);
// Add DAT GenericDataHeader as parent.
data.GetFileHeader()->GetGenericDataHdr()->AddParent(datHdr);
WriteRemaingSmallCelFileWithGridParameters(data);
}