本文整理汇总了C++中TResourceReader::ReadReal64方法的典型用法代码示例。如果您正苦于以下问题:C++ TResourceReader::ReadReal64方法的具体用法?C++ TResourceReader::ReadReal64怎么用?C++ TResourceReader::ReadReal64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TResourceReader
的用法示例。
在下文中一共展示了TResourceReader::ReadReal64方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ConstructFromResourceL
EXPORT_C void CEikFloatingPointEditor::ConstructFromResourceL(TResourceReader& aReader)
{
TInt textLimit=aReader.ReadUint16();
TReal min=aReader.ReadReal64();
TReal max=aReader.ReadReal64();
TReal defaultValue=aReader.ReadReal64(); // does not work with queries !!!
ConstructL(min,max,textLimit);
// added to give a default value, to work with forms. Unsure if this is desirable.
if ((min>defaultValue)||(defaultValue>max))
defaultValue=min;
SetValueL(&defaultValue);
}
示例2: TestFlPtEdL
/**
@SYMTestCaseID SYSLIB-BAFL-CT-0435
@SYMTestCaseDesc Tests for TResourceReader::ReadInt16(),TResourceReader::ReadInt64() function
@SYMTestPriority High
@SYMTestActions Attempt for reading FLPTED resource
@SYMTestExpectedResults Tests must not fail
@SYMREQ REQ0000
*/
void TRsReadTester::TestFlPtEdL()
{
test.Next(_L(" @SYMTestCaseID:SYSLIB-BAFL-CT-0435 Test reading FLPTED resource "));
TResourceReader reader;
CreateResourceReaderLC(reader,SYS_FLPTED_ONE);
test(reader.ReadInt16()==18);
TReal little=reader.ReadReal64();
test(little==0.0);
TReal big=reader.ReadReal64();
test(big>9.89e99);
test(big<9.91e99);
CleanupStack::PopAndDestroy(1);
}
示例3: ConstructL
// Complete the construction of the
// CResData object using the supplied
// reource reader representing the resource data.
// The structure of the data is assumed to be
// defined by the resource struct DATA in "ReadData.rh"
void CResData::ConstructL(TResourceReader& aReader)
{
// Interpret next bytes as a TInt16
iWrd = aReader.ReadInt16();
// Interpret next bytes as a TInt16
iFlags = aReader.ReadInt16();
// Interpret next bytes as a TInt32
iLng = aReader.ReadInt32();
iTxt = aReader.ReadTPtrC();
// Interpret the next byte as the length
// of text. The text itself follows
// this byte.
iLtxt = aReader.ReadHBufC16L();
// Interpret the next byte as a TInt8
iByt = aReader.ReadInt8();
// Interpret next bytes as a TReal
iDbl = aReader.ReadReal64();
}