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


C++ CDFFileReader::Read方法代码示例

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


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

示例1: CPPUNIT_ASSERT_THROW

void CDFFileReaderTest::BadFilenameTest()
{
	CDFData data;
	CDFFileReader reader;
	data.SetFilename("CDFMetaDataBad");
	CPPUNIT_ASSERT_THROW(reader.Read(data, CDFFileReader::ReadSequential), affymetrix_calvin_exceptions::FileNotFoundException);
}
开发者ID:,项目名称:,代码行数:7,代码来源:

示例2: UnknownQCProbeSetNameTest

void CDFFileReaderTest::UnknownQCProbeSetNameTest()
{
	CDFData data;
	CDFFileReader reader;
	reader.SetFilename(SMALL_QCCDF_FILE);
	reader.Read(data, CDFFileReader::ReadByProbeSetName);

	CDFQCProbeSetInformation info;
	CPPUNIT_ASSERT_THROW(data.GetQCProbeSetInformation(L"hello", info), ProbeSetNotFoundException);
}
开发者ID:,项目名称:,代码行数:10,代码来源:

示例3: GetQCProbeSetInformationWithProbeSetNumberOutOfBoundsTest

void CDFFileReaderTest::GetQCProbeSetInformationWithProbeSetNumberOutOfBoundsTest()
{
	CDFData data;
	CDFFileReader reader;
	reader.SetFilename(SMALL_QCCDF_FILE);
	reader.Read(data, CDFFileReader::ReadByProbeSetNumber);

	CDFQCProbeSetInformation info;
	CPPUNIT_ASSERT_THROW(data.GetQCProbeSetInformation(11, info), ProbeSetNotFoundException);
}
开发者ID:,项目名称:,代码行数:10,代码来源:

示例4: ReadQCCDFProbeSetInformationOpenProbeNameModeInWrongMode

void CDFFileReaderTest::ReadQCCDFProbeSetInformationOpenProbeNameModeInWrongMode()
{
	CDFData data;
	CDFFileReader reader;
	reader.SetFilename(SMALL_QCCDF_FILE);
	reader.Read(data, CDFFileReader::ReadByProbeSetName);

	CDFQCProbeSetInformation info;
	CPPUNIT_ASSERT_THROW(data.GetQCProbeSetInformation(3, info), CDFAccessNotSupportedByModeException);
}
开发者ID:,项目名称:,代码行数:10,代码来源:

示例5: ReadCDFProbeSetInformationOpenProbeIndexModeInWrongMode

void CDFFileReaderTest::ReadCDFProbeSetInformationOpenProbeIndexModeInWrongMode()
{
	CDFData data;
	CDFFileReader reader;
	reader.SetFilename(SMALL_CDF_FILE);
	reader.Read(data, CDFFileReader::ReadByProbeSetNumber);

	CDFProbeSetInformation info;
	CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(L"hello", info), CDFAccessNotSupportedByModeException);
}
开发者ID:,项目名称:,代码行数:10,代码来源:

示例6: UseGetProbeSEtInformationTOReadQCCDFFileTest

void CDFFileReaderTest::UseGetProbeSEtInformationTOReadQCCDFFileTest()
{
	CDFData data;
	CDFFileReader reader;
	reader.SetFilename(SMALL_QCCDF_FILE);
	reader.Read(data, CDFFileReader::ReadByProbeSetNumber);
	CDFProbeSetInformation info;
	CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(0, info), ProbeSetNotFoundException);
	CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(L"hello", info), ProbeSetNotFoundException);
}
开发者ID:,项目名称:,代码行数:10,代码来源:

示例7: ReadSmallCDFFileBasicTest

void CDFFileReaderTest::ReadSmallCDFFileBasicTest()
{
	CDFData data;
	CDFFileReader reader;
	CPPUNIT_ASSERT_NO_THROW(reader.SetFilename(SMALL_CDF_FILE));
	CPPUNIT_ASSERT_NO_THROW(reader.Read(data));

	CPPUNIT_ASSERT(data.GetFilename() == SMALL_CDF_FILE);

	FileHeader* fh = data.GetFileHeader();
	u_int32_t pos = fh->GetFirstDataGroupFilePos();
	CPPUNIT_ASSERT(pos == 0x1BD);
	CPPUNIT_ASSERT(data.GetProbeSetCnt() == 10);
	CPPUNIT_ASSERT(data.GetArrayRows() == 10*2);
	CPPUNIT_ASSERT(data.GetArrayCols() == 11);
}
开发者ID:,项目名称:,代码行数:16,代码来源:

示例8: CPPUNIT_ASSERT_NO_THROW

void CDFFileReaderTest::ReadSmallCDFFileSeqModeTest()
{
	CDFData data;
	CDFFileReader reader;
	CPPUNIT_ASSERT_NO_THROW(reader.SetFilename(SMALL_CDF_FILE));
	CPPUNIT_ASSERT_NO_THROW(reader.Read(data, CDFFileReader::ReadSequential));

	int32_t probeSetCnt = data.GetProbeSetCnt();

	for (int32_t i = 0; i < probeSetCnt; ++i)
	{
		CDFProbeSetInformation info;
		data.GetProbeSetInformation(i, info);

		CheckSmallCDFProbeSetInformation(i, info);
	}

	CheckGetProbeSetName(data);
}
开发者ID:,项目名称:,代码行数:19,代码来源:

示例9: ReadHeader

/*
 * Read the header of the file only. Read a calvin file in its entirety - this really
 * reads the header until the data groups are opened.
 */
bool FusionCDFData::ReadHeader()
{
    CreateObject();
    if (gcosData)
    {
        gcosData->SetFileName(fileName.c_str());
        return gcosData->ReadHeader();
    }
    else
    {
        CDFFileReader reader;
        reader.SetFilename(fileName);
        try
        {
            reader.Read(*calvinData);
        }
        catch(...)
        {
            return false;
        }
        return true;
    }
}
开发者ID:,项目名称:,代码行数:27,代码来源:


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