当前位置: 首页>>代码示例>>C++>>正文


C++ ParameterNameValueType::SetName方法代码示例

本文整理汇总了C++中ParameterNameValueType::SetName方法的典型用法代码示例。如果您正苦于以下问题:C++ ParameterNameValueType::SetName方法的具体用法?C++ ParameterNameValueType::SetName怎么用?C++ ParameterNameValueType::SetName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ParameterNameValueType的用法示例。


在下文中一共展示了ParameterNameValueType::SetName方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: 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);
}
开发者ID:,项目名称:,代码行数:26,代码来源:

示例2: test_AlgParams

void CHPQuantificationDataTest::test_AlgParams()
{
	ParameterNameValueTypeList params;
	ParameterNameValueType param;
	CHPQuantificationData data;

	param.SetName(L"n1");
	param.SetValueText(L"v1");
	params.push_back(param);

	param.SetName(L"n2");
	param.SetValueText(L"v2");
	params.push_back(param);

	data.AddAlgParams(params);

	ParameterNameValueTypeList params_out = data.GetAlgParams();
	CPPUNIT_ASSERT(params_out.size() == 2);
	ParameterNameValueTypeList::iterator it = params_out.begin();
	param = *it;
	CPPUNIT_ASSERT(param.GetName() == L"n1");
	CPPUNIT_ASSERT(param.GetValueText() == L"v1");
	++it;
	param = *it;
	CPPUNIT_ASSERT(param.GetName() == L"n2");
	CPPUNIT_ASSERT(param.GetValueText() == L"v2");

}
开发者ID:einon,项目名称:affymetrix-power-tools,代码行数:28,代码来源:CHPQuantificationDataTest.cpp

示例3: 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);
}
开发者ID:,项目名称:,代码行数:32,代码来源:

示例4: test_SumParams

void CHPMultiDataDataTest::test_SumParams()
{
	ParameterNameValueTypeList params;
	ParameterNameValueType param;
	CHPMultiDataData data;

	param.SetName(L"n1");
	param.SetValueText(L"v1");
	params.push_back(param);

	param.SetName(L"n2");
	param.SetValueText(L"v2");
	params.push_back(param);

	data.AddSummaryParams(params);

	ParameterNameValueTypeList params_out = data.GetSummaryParams();
	CPPUNIT_ASSERT(params_out.size() == 2);
	ParameterNameValueTypeList::iterator it = params_out.begin();
	param = *it;
	CPPUNIT_ASSERT(param.GetName() == L"n1");
	CPPUNIT_ASSERT(param.GetValueText() == L"v1");
	++it;
	param = *it;
	CPPUNIT_ASSERT(param.GetName() == L"n2");
	CPPUNIT_ASSERT(param.GetValueText() == L"v2");

}
开发者ID:,项目名称:,代码行数:28,代码来源:

示例5: WriteSmallCelFileNoStdev

void TestFileGenerator::WriteSmallCelFileNoStdev()
{
	CelFileData data("small_cel_file_no_stdev");
	data.SetIntensityCount(25);
	data.SetStdDevCount(0);
	data.SetPixelCount(25);
	data.SetOutlierCount(2);
	data.SetMaskCount(3);
	data.SetRows(5);
	data.SetCols(5);
	data.SetArrayType(L"Hg-small");
	data.SetAlgorithmName(L"Feature Extraction");
	ParameterNameValueType nvt;
	nvt.SetName(L"percentile");
	nvt.SetValueFloat(0.75f);
	data.AddAlgorithmParameter(nvt);
	nvt.SetName(L"outlierlow");
	nvt.SetValueFloat(1.004f);
	data.AddAlgorithmParameter(nvt);

	CelFileWriter* writer = new CelFileWriter(data);

	FloatVector vInten;
	Int16Vector vPixels;

	for (int i=0; i<25; ++i)
	{
		vInten.push_back(100.0f*i);
		vPixels.push_back(25);
	}

	// Do some writing
	writer->WriteIntensities(vInten);
	writer->WritePixels(vPixels);

//	XYCoordVector
	XYCoordVector outlier;
	XYCoord xy(0,0);
	outlier.push_back(xy);
	xy.xCoord = 1;
	xy.yCoord = 2;
	outlier.push_back(xy);
	writer->WriteOutlierCoords(outlier);

	XYCoordVector masked;
	xy.xCoord = 1;
	xy.yCoord = 0;
	masked.push_back(xy);
	xy.xCoord = 2;
	xy.yCoord = 1;
	masked.push_back(xy);
	xy.xCoord = 3;
	xy.yCoord = 2;
	masked.push_back(xy);
	writer->WriteMaskCoords(masked);


	delete writer;
}
开发者ID:,项目名称:,代码行数:59,代码来源:

示例6: WriteOutGenericDATDataFileNoGrid

void TestFileGenerator::WriteOutGenericDATDataFileNoGrid()
{
	GenericDataHeader gdh;
	AddStandardGenericDataHeader(gdh);

	// Fill the DataGroupHeader
	DataGroupHeader dch;
	dch.SetName(L"First Data Cube");

	// Fill the DataSetHeader
	DataSetHeader dph;
	dph.SetName(L"acquired data");
	ParameterNameValueType nvt;
	nvt.SetName(L"Scanner");
	nvt.SetValueText(L"M10");
	dph.AddNameValParam(nvt);
	nvt.SetName(L"Pixel Size");
	nvt.SetValueFloat(0.051f);
	dph.AddNameValParam(nvt);

	dph.AddColumn(UShortColumn(L"Pixel"));

	int32_t rows = 100;
	dph.SetRowCnt(rows);

	dch.AddDataSetHdr(dph);

	// Set the FileHeader
	FileHeader fh;
	fh.SetFilename("test.file.data_dat");
	fh.SetGenericDataHdr(gdh);
	fh.AddDataGroupHdr(dch);

	// Create the generic file writer
	GenericFileWriter gfWriter(&fh);
	gfWriter.WriteHeader();

	DataGroupWriterIt dcwBegin, dcwEnd;
	gfWriter.GetDataGroupWriters(dcwBegin, dcwEnd);

	DataGroupWriter d = *dcwBegin;
	dcwBegin->WriteHeader();

	DataSetWriterIt dpwBegin, dpwEnd;
	dcwBegin->GetDataSetWriters(dpwBegin, dpwEnd);

	dpwBegin->WriteHeader();

	// Write out the data
	for( int32_t i=0; i < rows; ++i )
	{
		u_int16_t value = (u_int16_t)(i*10+i);
		dpwBegin->Write(value);
	}

	dpwBegin->UpdateNextDataSetOffset();
	dcwBegin->Close();
}
开发者ID:,项目名称:,代码行数:58,代码来源:

示例7: AddParameters

void DATFileUpdaterTest::AddParameters(DATData& data)
{
	ParameterNameValueType nvt;
	nvt.SetName(L"Santa Clara");
	nvt.SetValueUInt8(56);
	data.AddGridAlignmentAlgorithmParameter(nvt);

	nvt.SetName(L"San Mateo");
	nvt.SetValueFloat(4.56f);
	data.AddGridAlignmentAlgorithmParameter(nvt);
}
开发者ID:,项目名称:,代码行数:11,代码来源:

示例8:

/*
 * Save the program information to the AGCC file.
 */
void MAS5CHPUtils::StoreProgramInfo()
{
    ParameterNameValueType p;
    p.SetName(PROGRAM_NAME);
    p.SetValueText(programName);
    cc_data->GetGenericData().Header().GetGenericDataHdr()->AddNameValParam(p);
    p.SetName(PROGRAM_ID);
    p.SetValueText(programId);
    cc_data->GetGenericData().Header().GetGenericDataHdr()->AddNameValParam(p);
    p.SetName(PROGRAM_COMPANY);
    p.SetValueText(programCompany);
    cc_data->GetGenericData().Header().GetGenericDataHdr()->AddNameValParam(p);
}
开发者ID:einon,项目名称:affymetrix-power-tools,代码行数:16,代码来源:MAS5CHPUtils.cpp

示例9: FindDataSetHeaderTest

void DataGroupHeaderTest::FindDataSetHeaderTest()
{
	// Create DataSetHeaders
	DataSetHeader dph1;
	dph1.SetName(L"pixel intensity");
	ParameterNameValueType param;
	param.SetName(L"Scanner");
	param.SetValueText(L"M10");
	dph1.AddNameValParam(param);
	dph1.AddUShortColumn(L"");
	dph1.SetRowCnt(1);

	DataSetHeader dph2;
	dph2.SetName(L"grid coordinates");
	param.SetName(L"Corner Pattern");
	param.SetValueText(L"Checkerboard");
	dph2.AddNameValParam(param);
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");

	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");

	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");

	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.AddUShortColumn(L"");
	dph2.SetRowCnt(1);

	header->AddDataSetHdr(dph1);
	header->AddDataSetHdr(dph2);

	const DataSetHeader* dph = header->FindDataSetHeader(L"none");
	CPPUNIT_ASSERT(0 == dph);
	dph = header->FindDataSetHeader(dph1.GetName());
	CPPUNIT_ASSERT(0 != dph);
	CPPUNIT_ASSERT(dph->GetName() == dph1.GetName());
	dph = header->FindDataSetHeader(dph2.GetName());
	CPPUNIT_ASSERT(0 != dph);
	CPPUNIT_ASSERT(dph->GetName() == dph2.GetName());
}
开发者ID:einon,项目名称:affymetrix-power-tools,代码行数:50,代码来源:DataGroupHeaderTest.cpp

示例10: SetChromosomeProbeSetIndexInformation

/*
 * Store the start index and count of probe sets for the given chromosome.
 */
void CopyNumberResultWriter::SetChromosomeProbeSetIndexInformation(u_int8_t chr, int startIndex, int count)
{
	ostringstream str;
	str << (int) chr;
    wstring schr = StringUtils::ConvertMBSToWCS(str.str());
    ParameterNameValueType param;
    param.SetName(schr + L":start");
    param.SetValueInt32(startIndex);
    chrStartStop.push_back(param);
    param.SetName(schr + L":count");
    param.SetValueInt32(count);
    chrStartStop.push_back(param);
    param.SetName(schr + L":display");
    param.SetValueAscii(ChromosomeToString(chr));
    chrStartStop.push_back(param);
}
开发者ID:,项目名称:,代码行数:19,代码来源:

示例11: WriteCelFileWithADataSetWithZeroRows

void TestFileGenerator::WriteCelFileWithADataSetWithZeroRows()
{
	CelFileData data("small_cel_file_with_dataset_of_zero_rows");
	data.SetIntensityCount(25);
	data.SetStdDevCount(25);
	data.SetPixelCount(25);
	data.SetOutlierCount(0);
	data.SetMaskCount(0);
	data.SetRows(5);
	data.SetCols(5);
	data.SetArrayType(L"Hg-small");
	data.SetAlgorithmName(L"Feature Extraction");
	ParameterNameValueType nvt;
	nvt.SetName(L"percentile");
	nvt.SetValueFloat(0.75f);
	data.AddAlgorithmParameter(nvt);
	nvt.SetName(L"outlierlow");
	nvt.SetValueFloat(1.004f);
	data.AddAlgorithmParameter(nvt);

	CelFileWriter* writer = new CelFileWriter(data);

	FloatVector vInten;
	FloatVector vStdev;
	Int16Vector vPixels;

	for (int i=0; i<25; ++i)
	{
		vInten.push_back(100.0f*i);
		vStdev.push_back(.123f);
		vPixels.push_back(25);
	}

	// Do some writing
	writer->WriteIntensities(vInten);
	writer->WriteStdDevs(vStdev);
	writer->WritePixels(vPixels);

	XYCoordVector outlier;
	writer->WriteOutlierCoords(outlier);

	XYCoordVector masked;
	writer->WriteMaskCoords(masked);

	delete writer;
}
开发者ID:,项目名称:,代码行数:46,代码来源:

示例12: SetWStringToGenericHdr

void CHPQuantificationData::SetWStringToGenericHdr(const std::wstring& name, const std::wstring value, int32_t reserve)
{
	ParameterNameValueType paramType;
	paramType.SetName(name);
	paramType.SetValueText(value, reserve);
	GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
	hdr->AddNameValParam(paramType);
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例13: SetFloatToGenericHdr

void CHPData::SetFloatToGenericHdr(const std::wstring& name, float value)
{
	ParameterNameValueType paramType;
	paramType.SetName(name);
	paramType.SetValueFloat(value);
	GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
	hdr->AddNameValParam(paramType);
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例14:

void CDFData::SetUInt32ToGenericHdr(const std::wstring& name, u_int32_t value)
{
	ParameterNameValueType paramType;
	paramType.SetName(name);
	paramType.SetValueUInt32(value);
	GenericDataHeader* hdr = genericData.Header().GetGenericDataHdr();
	hdr->AddNameValParam(paramType);
}
开发者ID:HenrikBengtsson,项目名称:Affx-Fusion-SDK,代码行数:8,代码来源:CDFData.cpp

示例15: SetRefSequence

void CDFData::SetRefSequence(const std::string &seq)
{
	GenericDataHeader* gPtr = genericData.Header().GetGenericDataHdr();
	ParameterNameValueType paramType;
	paramType.SetName(CDF_REFSEQ_PARAM);
	paramType.SetValueAscii(seq);
	gPtr->AddNameValParam(paramType);
}
开发者ID:HenrikBengtsson,项目名称:Affx-Fusion-SDK,代码行数:8,代码来源:CDFData.cpp


注:本文中的ParameterNameValueType::SetName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。