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


C++ ReadBool函数代码示例

本文整理汇总了C++中ReadBool函数的典型用法代码示例。如果您正苦于以下问题:C++ ReadBool函数的具体用法?C++ ReadBool怎么用?C++ ReadBool使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: ReadDword

void CRulesManager::ReadRule(LPCTSTR RuleName, USB_DK_HIDE_RULE &Rule) const
{
    Rule.Type  = ReadDword(RuleName, USBDK_HIDE_RULE_TYPE);
    Rule.Hide  = ReadBool(RuleName, USBDK_HIDE_RULE_SHOULD_HIDE);
    Rule.VID   = ReadDwordMask(RuleName, USBDK_HIDE_RULE_VID);
    Rule.PID   = ReadDwordMask(RuleName, USBDK_HIDE_RULE_PID);
    Rule.BCD   = ReadDwordMask(RuleName, USBDK_HIDE_RULE_BCD);
    Rule.Class = ReadDwordMask(RuleName, USBDK_HIDE_RULE_CLASS);
}
开发者ID:daynix,项目名称:UsbDk,代码行数:9,代码来源:RuleManager.cpp

示例2: ReadBool

/*
=====================
idRestoreGame::ReadClipModel
=====================
*/
void idRestoreGame::ReadClipModel( idClipModel *&clipModel ) {
	bool restoreClipModel;
	ReadBool( restoreClipModel );
	if( restoreClipModel ) {
		clipModel = new idClipModel();
		clipModel->Restore( this );
	} else {
		clipModel = NULL;
	}
}
开发者ID:revelator,项目名称:Revelation-Engine,代码行数:15,代码来源:SaveGame.cpp

示例3: ReadObjectHeader

bool  DPO_XYReduction::ReadFromFile()
{
    ReadObjectHeader();
    ReadFuncObjRef(xyInputObjRef);
    ReadText(outputDesc, DFO_XYBase::outputDescLen);

    dataReductionOperation = ReductionOp(ReadInt());
    pointSkipInterval = ReadInt();
    maxXChange = ReadDouble();
    maxYChange = ReadDouble();
    if (currentObjReadMajorVersion > 0)
    {
        logXChange = ReadBool();
        logYChange = ReadBool();
    }

    CheckForInputFailure("Reading DPO_XYReduction");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:19,代码来源:DPO_XYReduction.cpp

示例4: ReadLineSpec

void ReadLineSpec(PSC_LineSpec& lineSpec)
{
    int readVer = ReadInt();

    lineSpec.linePen        = ReadInt();
    lineSpec.lineType       = PlotLineType(ReadInt());
    lineSpec.lineThickness  = ReadInt();
    if (readVer > 0)
        lineSpec.mitreLines = ReadBool();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:10,代码来源:genPPOConfigFile.cpp

示例5: ReadGroupHeader

    bool SampleStaticSupport::ReadFromFile()
    {
        ReadGroupHeader(groupHeader, majorVersion);

        if (currentObjReadMajorVersion > 0)
        {
            // global objects
            ReadGlobalFunc(sampResultsFO);
        }

        if (currentObjReadMajorVersion > 2)
        {
            ReadGlobalFunc(uncertInput);
            ReadGlobalFunc(uncertResultsFO);
            uncertType = UncertType(ReadInt());
        }

        //  static control variables basic
        samplingIsLHS           = ReadBool();
        specifyCorrelations     = ReadBool();
        forceCorrelationsToZero = ReadBool();
        numberOfTrials          = ReadInt();
        randSeed                = ReadInt();
        if (currentObjReadMajorVersion > 1)
            singleRunRealization = ReadInt();

        if (currentObjReadMajorVersion > 2)
        {
            calcDerivSpan = ReadBool();
            derivSpan = ReadDouble();

            for (int i = 0; i < UncertInput::maxMetricSel; i++)
            {
                uncertInput.inputMetrics[i].uncertOnMetric = ReadBool();
                ReadFuncObjRef(uncertInput.inputMetrics[i].metricObject);
            }
        }

        SampVarPostReadFixup();


        return true;
    }
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:43,代码来源:G_Sample.cpp

示例6: ReadColorBase

void ReadColorBase(PSC_ColorBase& colorBase)
{
    int scalarReadVer = ReadInt();

    ReadFuncObjRef(colorBase.inputDataObjRef);
    ReadFuncObjRef(colorBase.colorMapObjRef);
    ReadFuncObjRef(colorBase.limitMasterObjRef);

    colorBase.limitIsMaster = ReadBool();

    colorBase.rangeLimit.logRange = ReadBool();
    colorBase.rangeLimit.minLimit = ReadNullDouble();
    colorBase.rangeLimit.maxLimit = ReadNullDouble();

    colorBase.autoLimits         = ReadBool();
    colorBase.baseAutoDataSource     = ReadInt();
    colorBase.clipToRange        = ReadBool();

    CheckForInputFailure("Reading PSC_ColorBase");
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:20,代码来源:genPPOConfigFile.cpp

示例7: ReadObjectHeader

bool  DPO_CreateSpecialCDF::ReadFromFile()
{
    ReadObjectHeader();

    ReadFuncObjRef(xyInputObjRef);
    distributionType = DistributionType(ReadInt());
    normalizeInputProbabilities = ReadBool();

    CheckForInputFailure("Reading DPO_CreateSpecialCDF");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:11,代码来源:DPO_CreateSpecialCDF.cpp

示例8: ReadObjectHeader

bool  DPO_CreateBEETResponseFunction::ReadFromFile()
{
    ReadObjectHeader();

    ReadFuncObjRef(pressureInputObjRef);
    ReadFuncObjRef(barometricInputObjRef);
    ReadFuncObjRef(earthTideInputObjRef);

    calcBE = ReadBool();
    calcET = ReadBool();

    ReadRealMSSpec(maxTimeDelayMS);
    timeBase = TimeBase(ReadInt());
    ReadRealMSSpec(specTimeSpacingMS);

    convertType = ReadInt();

    CheckForInputFailure("Reading DPO_CreateBEETResponseFunction");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:20,代码来源:DPO_CreateBEETResponseFunction.cpp

示例9: ReadInt

bool  DPO_Normalize::ReadFromFile()
{
    int stVer = ReadInt();

    ReadRealMSSpec(bpRef.normPowerMS);
    bpRef.isMaster = ReadBool();

    bpRef.normalizeDC.normalizeOp    = DC_Normalize::NormalizeOp(ReadInt());
    bpRef.normalizeDC.autoLimit      = ReadBool();
    bpRef.normalizeDC.inputMinimum   = ReadDouble();
    bpRef.normalizeDC.inputMaximum   = ReadDouble();
    bpRef.normalizeDC.outputMinimum  = ReadDouble();
    bpRef.normalizeDC.outputMaximum  = ReadDouble();
    bpRef.normalizeDC.normPower      = ReadDouble();

    exposedNormPower.ReadExposed();

    CheckForInputFailure("Reading DPO_Normalize");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:20,代码来源:DPO_Normalize.cpp

示例10: ReadObjectHeader

bool  PPO_DataLabels::ReadFromFile()
{
    ReadObjectHeader();
    PPO_AnnoBase::ReadFromFile();
    ReadFuncObjRef(penSetObjRef);

    int nread = PFO_DataLabels::maxDataLabels;
    if (currentObjReadMajorVersion < 1)
        nread = 6;

    for ( int i = 0; i < nread; i++)
    {
        ReadFuncObjRef(labelData[i].labelObjRef);
        labelData[i].doLabel   = ReadBool();
        labelData[i].labAlign  = HorizontalTextAlignment(ReadInt());

        labelData[i].overrideFormat                 = ReadBool();
        labelData[i].labelFormat.format             = NumConvFormat(ReadInt());
        labelData[i].labelFormat.digitsPrecision    = ReadInt();

        labelData[i].overrideMainLabel     = ReadBool();
        ReadText(labelData[i].mainLabel, DO_Label::maxLabelLen);
        ReadText(labelData[i].unitsLabel, DO_Label::maxLabelLen);
    }

    ulLocation.pX = ReadDouble();
    ulLocation.pY = ReadDouble();

    ReadText(legendTitle, PSC_AnnoSpec::legendTitleLen);

    frameLegend        = ReadBool();
    frameThick         = ReadInt();
    opaqueBackground   = ReadBool();
    legendPen          = ReadInt();
    minDataFieldWidth  = ReadInt();

    ReadFont(legendFont);

    CheckForInputFailure("Reading PPO_DataLabels");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:41,代码来源:PPO_DataLabels.cpp

示例11: ReadMat3

/*
================
idRestoreGame::ReadRenderLight
================
*/
void idRestoreGame::ReadRenderLight( renderLight_t& renderLight )
{
	int index;
	int i;
	
	ReadMat3( renderLight.axis );
	ReadVec3( renderLight.origin );
	
	ReadInt( renderLight.suppressLightInViewID );
	ReadInt( renderLight.allowLightInViewID );
	ReadBool( renderLight.noShadows );
	ReadBool( renderLight.noSpecular );
	ReadBool( renderLight.pointLight );
	ReadBool( renderLight.parallel );
	
	ReadVec3( renderLight.lightRadius );
	ReadVec3( renderLight.lightCenter );
	
	ReadVec3( renderLight.target );
	ReadVec3( renderLight.right );
	ReadVec3( renderLight.up );
	ReadVec3( renderLight.start );
	ReadVec3( renderLight.end );
	
	// only idLight has a prelightModel and it's always based on the entityname, so we'll restore it there
	// ReadModel( renderLight.prelightModel );
	renderLight.prelightModel = NULL;
	
	ReadInt( renderLight.lightId );
	
	ReadMaterial( renderLight.shader );
	
	for( i = 0; i < MAX_ENTITY_SHADER_PARMS; i++ )
	{
		ReadFloat( renderLight.shaderParms[ i ] );
	}
	
	ReadInt( index );
	renderLight.referenceSound = gameSoundWorld->EmitterForIndex( index );
}
开发者ID:Anthony-Gaudino,项目名称:OpenTechBFG,代码行数:45,代码来源:SaveGame.cpp

示例12: ReadAppGlobals

    void ReadAppGlobals()
    {
        ReadGroupHeader(appGlobalHeader, majorVersionNum);

        usePageObjectVersioning = (currentObjReadMajorVersion > 3);

        if (currentObjReadMajorVersion > 1)
            {
                ReadFuncObjList();
#ifndef ADCONSOLEAPP
                ReadGlobalFunc(appDefaultObjects::sysInfoObj);
                if (currentObjReadMajorVersion > 2)
                    {
                        ReadGlobalFunc(appDefaultObjects::defaultPenObj);
                        ReadGlobalFunc(appDefaultObjects::coldHotMapObj);
                        ReadGlobalFunc(appDefaultObjects::whiteBlackMapObj);
                    }

#else
                // all will be > ver 1
                for (int i = 0; i < 4; i++)
                    FuncObjC* dummy = ReadFuncObj();

#endif //ADCONSOLEAPP

                return;
            }

#ifndef ADCONSOLEAPP
        // all cmd line will be new
        // older version
        ReadBool();   // small fonts
        if (currentObjReadMajorVersion > 0)
            {
                // tre settings
                int nSingleLine = ReadInt();
                int nSingleLineType = ReadInt();
            }

        int nSysToRead = ReadInt();
        ReadFuncObjList();

        // sys info was always first
        FuncObjC::updateData[0].newRef = &appDefaultObjects::sysInfoObj;

        // app specific objects start at 1
        for (int i = 1; i < nSysToRead; i++)
            FuncObjC::updateData[i].newRef = prevVerSystemObjects[i - 1];

#endif // ADCONSOLEAPP

    }
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:52,代码来源:AppConfigFile.cpp

示例13: ReadObjectHeader

bool DPO_TableTranspose::ReadFromFile()
{
    ReadObjectHeader();
    ReadFuncObjRef(inputTableObjRef);
    if (currentObjReadMajorVersion > 0)
    {
        skipXColumn     = ReadBool();
        xcolumnIndex    = ReadInt();
    }

    CheckForInputFailure("Reading DPO_TableTranspose");
    return true;
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:13,代码来源:DPO_TableTranspose.cpp

示例14: ReadInt

void  MenuObjC::ReadObjectHeader()
{
    currentObjReadMajorVersion = ReadInt();
    currentObjReadMinorVersion = ReadInt();
    if (objFunction)
        {
            ReadAndMatchFuncObj(objFunction);
            ReadText(objFunction->objID, FuncObjC::objectIDLen);
            objFunction->objIDisDefault = ReadBool();
        }
    else
        {
            ReadText(objectID, FuncObjC::objectIDLen);
        }

    objDeleteable       = ReadBool();
    objCopyable             = ReadBool();

    objSelected = ReadBool();

    CheckForInputFailure("Reading MenuObjC Properties");
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:22,代码来源:C_MenuObj.cpp

示例15: ReadGridLineLabelFormat

void ReadGridLineLabelFormat(PSC_GridLineLabelFormat& labelFormat)
{
    int labelReadVer = ReadInt();

    if (labelReadVer == 0)
    {
        bool doLabel = ReadBool();
        if (doLabel)
            labelFormat.labelType = PSC_GridLineLabelFormat::ltText;
        else
            labelFormat.labelType = PSC_GridLineLabelFormat::ltNone;
    }
    else
        labelFormat.labelType = PSC_GridLineLabelFormat::LabelType(ReadInt());

    labelFormat.labelPosition = ReadDouble();
    labelFormat.labelOffset = ReadInt();

    labelFormat.halign = HorizontalTextAlignment(ReadInt());
    labelFormat.valign = VerticalTextAlignment(ReadInt());
    labelFormat.blankLabel = ReadBool();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:22,代码来源:genPPOConfigFile.cpp


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