本文整理汇总了C++中CDFData::GetProbeSetInformation方法的典型用法代码示例。如果您正苦于以下问题:C++ CDFData::GetProbeSetInformation方法的具体用法?C++ CDFData::GetProbeSetInformation怎么用?C++ CDFData::GetProbeSetInformation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDFData
的用法示例。
在下文中一共展示了CDFData::GetProbeSetInformation方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: 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);
}
示例2: ReadCDFProbeSetInformationOpenSeqModeInWrongMode
void CDFFileReaderTest::ReadCDFProbeSetInformationOpenSeqModeInWrongMode()
{
CDFData data;
CDFFileReader reader;
reader.SetFilename(SMALL_CDF_FILE);
reader.Read(data, CDFFileReader::ReadSequential);
CDFProbeSetInformation info;
CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(4, info), CDFAccessNotSupportedByModeException);
CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(L"hello", info), CDFAccessNotSupportedByModeException);
}
示例3: UnknownProbeSetNameTest
void CDFFileReaderTest::UnknownProbeSetNameTest()
{
CDFData data;
CDFFileReader reader;
reader.SetFilename(SMALL_CDF_FILE);
reader.Read(data, CDFFileReader::ReadByProbeSetName);
CDFProbeSetInformation info;
CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(L"hello", info), ProbeSetNotFoundException);
}
示例4: GetProbeSetInformationWithProbeSetNumberOutOfBoundsTest
void CDFFileReaderTest::GetProbeSetInformationWithProbeSetNumberOutOfBoundsTest()
{
CDFData data;
CDFFileReader reader;
reader.SetFilename(SMALL_CDF_FILE);
reader.Read(data, CDFFileReader::ReadByProbeSetNumber);
CDFProbeSetInformation info;
CPPUNIT_ASSERT_THROW(data.GetProbeSetInformation(11, info), ProbeSetNotFoundException);
}
示例5: ReadSmallCDFFileSeqModeTest
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);
}
示例6: ReadSmallCDFFileProbeSetNumberModeTest
void CDFFileReaderTest::ReadSmallCDFFileProbeSetNumberModeTest()
{
CDFData data;
CDFFileReader reader;
CPPUNIT_ASSERT_NO_THROW(reader.SetFilename(SMALL_CDF_FILE));
CPPUNIT_ASSERT_NO_THROW(reader.Read(data, CDFFileReader::ReadByProbeSetNumber));
int32_t probeSetCnt = data.GetProbeSetCnt();
// go backwards
for (int32_t i = probeSetCnt-1; i >= 0; --i)
{
CDFProbeSetInformation info;
data.GetProbeSetInformation(i, info);
CheckSmallCDFProbeSetInformation(i, info);
}
CheckGetProbeSetName(data);
}
示例7: ReadSmallCDFFileProbeSetNameModeTest
void CDFFileReaderTest::ReadSmallCDFFileProbeSetNameModeTest()
{
CDFData data;
CDFFileReader reader;
CPPUNIT_ASSERT_NO_THROW(reader.SetFilename(SMALL_CDF_FILE));
CPPUNIT_ASSERT_NO_THROW(reader.Read(data, CDFFileReader::ReadByProbeSetName));
int32_t probeSetCnt = data.GetProbeSetCnt();
// go backwards
for (int32_t i = probeSetCnt-1; i >= 0; --i)
{
wchar_t name[100];
FormatString1(name, 100, L"biob_%d", i);
CDFProbeSetInformation info;
data.GetProbeSetInformation(name, info);
CheckSmallCDFProbeSetInformation(i, info);
}
CheckGetProbeSetName(data);
}