• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ ReadBool函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: ReadGroupHeader

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

  enterLayerDepths = ReadBool();
  ReadUnitReal(bottomLayerDepth);
  ReadUnitReal(bottomLayerElevation);
  useCommonHistory  = ReadBool();
  ReadUnitIndex(wellboreZoneDeltaVolumeUnits);
  ReadUnitIndex(wellboreZoneTZCompUnits);

  geologyLayers.SetSize(ReadInt());
  wellBoreZones.SetSize(ReadInt());

  for (int i = 0; i < geologyLayers.Size(); i++)
    ReadGeoLayer(geologyLayers[i]);

  for (int i = 0; i < wellBoreZones.Size(); i++)
    ReadWellBoreZone(wellBoreZones[i]);

  return true;
}
开发者ID:nsights,项目名称:nSIGHTS,代码行数:22,代码来源:G_Layer.cpp


示例17: ReadBool

// Load current option flags to the model file.
// Note: this will override the user-specified flags.
void CoreferenceOptions::Load(FILE* fs) {
  Options::Load(fs);

  bool success;
  //success = ReadInteger(fs, &FLAGS_sequence_model_type);
  //CHECK(success);
  //LOG(INFO) << "Setting --sequence_model_type=" << FLAGS_sequence_model_type;
  //success = ReadBool(fs, &FLAGS_tagger_large_feature_set);
  //CHECK(success);
  //LOG(INFO) << "Setting --tagger_large_feature_set="
  //          << FLAGS_tagger_large_feature_set;

  success = ReadBool(fs, &FLAGS_use_gender_number_determiners);
  CHECK(success);
  LOG(INFO) << "Setting --use_gender_number_determiners="
            << FLAGS_use_gender_number_determiners;
  success = ReadBool(fs, &FLAGS_use_gender_number_statistics);
  CHECK(success);
  LOG(INFO) << "Setting --use_gender_number_statistics="
            << FLAGS_use_gender_number_statistics;
  success = ReadBool(fs,
                     &FLAGS_generate_noun_phrase_mentions_by_dependencies);
  CHECK(success);
  LOG(INFO) << "Setting --generate_noun_phrase_mentions_by_dependencies="
            << FLAGS_generate_noun_phrase_mentions_by_dependencies;
  success = ReadDouble(fs, &FLAGS_false_anaphor_cost);
  CHECK(success);
  LOG(INFO) << "Setting --false_anaphor_cost=" << FLAGS_false_anaphor_cost;
  success = ReadDouble(fs, &FLAGS_false_new_cost);
  CHECK(success);
  LOG(INFO) << "Setting --false_new_cost=" << FLAGS_false_new_cost;
  success = ReadDouble(fs, &FLAGS_false_wrong_link_cost);
  CHECK(success);
  LOG(INFO) << "Setting --false_wrong_link_cost="
            << FLAGS_false_wrong_link_cost;

  Initialize();
}
开发者ID:davidlegit,项目名称:TurboParser,代码行数:40,代码来源:CoreferenceOptions.cpp


示例18: ReadModel

/*
================
idRestoreGame::ReadRenderEntity
================
*/
void idRestoreGame::ReadRenderEntity( renderEntity_t &renderEntity ) {
	int i;
	int index;
	ReadModel( renderEntity.hModel );
	ReadInt( renderEntity.entityNum );
	ReadInt( renderEntity.bodyId );
	ReadBounds( renderEntity.bounds );
	// callback is set by class's Restore function
	renderEntity.callback = NULL;
	renderEntity.callbackData = NULL;
	ReadInt( renderEntity.suppressSurfaceInViewID );
	ReadInt( renderEntity.suppressShadowInViewID );
	ReadInt( renderEntity.suppressShadowInLightID );
	ReadInt( renderEntity.allowSurfaceInViewID );
	ReadVec3( renderEntity.origin );
	ReadMat3( renderEntity.axis );
	ReadMaterial( renderEntity.customShader );
	ReadMaterial( renderEntity.referenceShader );
	ReadSkin( renderEntity.customSkin );
	ReadInt( index );
	renderEntity.referenceSound = gameSoundWorld->EmitterForIndex( index );
	for( i = 0; i < MAX_ENTITY_SHADER_PARMS; i++ ) {
		ReadFloat( renderEntity.shaderParms[ i ] );
	}
	for( i = 0; i < MAX_RENDERENTITY_GUI; i++ ) {
		ReadUserInterface( renderEntity.gui[ i ] );
	}
	// idEntity will restore "cameraTarget", which will be used in idEntity::Present to restore the remoteRenderView
	renderEntity.remoteRenderView = NULL;
	renderEntity.joints = NULL;
	renderEntity.numJoints = 0;
	ReadFloat( renderEntity.modelDepthHack );
	ReadBool( renderEntity.noSelfShadow );
	ReadBool( renderEntity.noShadow );
	ReadBool( renderEntity.noDynamicInteractions );
	ReadBool( renderEntity.weaponDepthHack );
	ReadInt( renderEntity.forceUpdate );
}
开发者ID:revelator,项目名称:Revelation-Engine,代码行数:43,代码来源:SaveGame.cpp


示例19: ReadText

void DataCaptureStaticSupport::ReadDataCapture(DataCaptureSpecGlob& inDC)
{
  ReadText(inDC.dataDesig, DataCaptureSpec::dataDesigLen);
  inDC.makeDefaultDataDesig = ReadBool();
  inDC.captureType     = DataCaptureSpec::CaptureType(ReadInt());
  inDC.pressureCapType   = DataCaptureSpec::PressureCapType(ReadInt());
  inDC.flowCapType     = DataCaptureSpec::FlowCapType(ReadInt());
  inDC.productionCapType = DataCaptureSpec::ProductionCapType(ReadInt());
  inDC.testZoneCapType   = DataCaptureSpec::TestZoneCapType(ReadInt());

  ReadUnitReal(inDC.radiusData);
  if (currentObjReadMajorVersion > 2)
  {
    inDC.zvalueIsRatio = ReadBool();    // added v3
    ReadUnitReal(inDC.actualZ);   // added v3
    inDC.normalizedZ = ReadDouble();    // added v3
  }

  if (currentObjReadMajorVersion > 3)
  {
    ReadUnitReal(inDC.obsXLocation);    // added v4
    ReadUnitReal(inDC.obsYLocation);    // added v4
  }

  if (currentObjReadMajorVersion > 4)
    ReadText(inDC.wellboreZoneID, IntervalBase::intervalIDLen);

  ReadUnitIndex(inDC.outputUnits);

  if (currentObjReadMajorVersion > 1)
    ReadGlobalFunc(inDC.outputFO);

  inDC.superData.AllocAndCreate(ReadInt());
  for (int i = 0; i < inDC.superData.Size(); i++)
    ReadSuperComponent(inDC.superData.GetRef(i));
  inDC.SetIDs();

}
开发者ID:nsights,项目名称:nSIGHTS,代码行数:38,代码来源:G_DataCapture.cpp


示例20: ReadObjectHeader

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

    ReadFuncObjRef(inputPressureObjRef);
    ReadFuncObjRef(inputDensityObjRef);
    ReadRealMSSpec(groundSurfaceElevationMS);

    headCalculation = HeadCalculation(ReadInt());
    outputIsElevation = ReadBool();

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ReadBufferExtended函数代码示例发布时间:2022-05-30
下一篇:
C++ ReadBlock函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap