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


C++ DataDefnBlk::Text方法代码示例

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


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

示例1: BuildDataDefnElevation

void Crush1::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);

  DDB.Text("");
  DDB.CheckBox("On", "", DC_, "", &bOnLine, this, isParm);
  DDB.Text("Power");
  DDB.Double("Bond_WI",        "BondWI",    DC_WI ,   "kWh/t", &BWI,        this, isParm);
  DDB.Double("Calc_Power",     "UsedPower", DC_Pwr,   "kW",    &Power,      this, isResult|0);

  DDB.Text("");
  DDB.Double("Density",        "Rho",       DC_Rho,   "kg/m^3", xidRho,      this, isResult|0);
  BuildDataDefnElevation(DDB);
  CB.Add_StandardDataDefn(DDB, true);

  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  DDB.Text("");
  DDB.Double("DischOnSpeed",   "",          DC_Frac,  "%",     &DischOnSpeed, this, isParm);
  MSB.BuildDataDefn(DDB, this, "Speed", 1);
  m_Pwr.BuildDataDefn(DDB);
  DDB.Visibility();

  DDB.Text("");
  BuildDataDefnShowIOs(DDB);

  CB.Add_ObjectDataDefn(DDB, true);

  DDB.Object(&Disch,     this, NULL, NULL, DDB_RqdPage);

  DDB.EndStruct();
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:31,代码来源:Crush1.cpp

示例2: BuildDataDefn

void Flare::BuildDataDefn(DataDefnBlk &DDB)
    {
  //  if (Page & 0x1)
  DDB.BeginStruct(this);
  DDB.Page   ("Page 1");
  DDB.Text   ("Datum");
  DDB.Double ("Datum",        "Z",    DC_L    , "m",    &dDatum,        this, isResult|0      | DYNMODE);
  DDB.Double ("Datum_Rqd",    "Z_Rqd",DC_L    , "m",    &dDatum_Rqd,    this, isParmStopped | DYNMODE|NAN_OK);
  DDB.Text   (" ");
  DDB.Double ("Mass_Flow",   "Qm",    DC_Qm,  "kg/s",  xidQm,     this, 0); //  ,NDT_ZERODEFAULT|NDT_SGN           )
  DDB.Double ("Vol_Flow",    "Qv",    DC_Qm,  "m^3/h", xidQv,     this, 0); //  ,NDT_SGN           )
  DDB.Text   (" ");
  DDB.Double ("Press_Input", "PiR",   DC_P,   "kPag",  xidPInRmt, this, 0); //  ,NDT_SGN    )
  DDB.Text   (" ");
//    }

//  if (Page & 0x2)
//    {
  DDB.Page   ("Page 2");
  DDB.String ("Flare",        "",           DC_,      "",     &FlareTag,   this,  isParm);
  DDB.Text   (" ");
//    }

  DDB.EndStruct();
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:25,代码来源:MG_SEP.CPP

示例3: BuildDataDefn

void CIsolator::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this, "CIsolator", NULL, DDB_NoPage);
  DDB.Text("");
  DDB.Long       ("TermCfg",    "", DC_,    "",  xidTSCfg, this, isParm, DDBCTTypes);
  DDB.CheckBoxBtn("On",         "", DC_,    "",  &m_bOn,          this, isParm);
  DDB.Double     ("HeatLoad",   "", DC_Pwr, "W",  xidHtLoad,          this, isResult);
  DDB.Text("");
  m_tsPwrIn.BuildDataDefn(DDB, 1, true);
  m_tsPwrOut.BuildDataDefn(DDB, 2, true);

  DDB.EndStruct();
  }
开发者ID:abcweizhuo,项目名称:Test3,代码行数:13,代码来源:Switch.cpp

示例4: BuildDataDefn

/*#F:This provides access to the variables of the model and calls the
BuildDataDefn for objects used by the model.*/ 
void CElectroCell::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);

  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  BuildDataDefnElevation(DDB);
  DDB.Double  ("Density",       "Rho",      DC_Rho,  "kg/m^3", xidRho,         this, isResult|0);
  DDB.Double  ("Level",         "Lvl",      DC_Frac, "%",      xidLevel,       this, isResult|0);
  DDB.Double  ("Mass_Accum",    "QmAcc",    DC_Qm,   "kg/s",   &m_QmAcc,       this, isResult|0);
  DDB.Double  ("Vol_Accum",     "QvAcc",    DC_Qv,   "L/s",    &m_QvAcc,       this, isResult|0);
  DDB.Text    ("");
  DDB.Byte    ("Plated_Metal?", "Metal?",   DC_,     "",       &iMetal,        this, isParm, SDB.DDBSolSpList());
  DDB.Double  ("Cathode_Mass",  "Cathodes", DC_,     "",       &CathMass,      this, isResult|0);
  DDB.Visibility();

  DDB.Text    ("");
  DDB.Double  ("CellEfficiency","Cell_Eff",        DC_Frac, "%",      &dCellEff,      this, isParm);
  //DDB.Double  ("",           "PreHeatFrac", DC_Frac, "%",      &dPreHeatFrac,  this, isParm); //possibly not needed?
  //DDB.Double  ("",             "EnergyRqd", DC_Pwr,  "kW",     &dHeatFlow,     this, isResult|noFileAtAll|InitHidden);
  //DDB.Double  ("",             "HeatFlow",  DC_Pwr,  "kW",     &dHeatFlow,     this, isResult|0);
  DDB.Double  ("",             "ElecEnergyTotal",  DC_Pwr,  "kW",     &m_dElecEnergyTotal,     this, isResult|0);
  DDB.Double  ("",             "ElecEnergyReact",  DC_Pwr,  "kW",     &m_dElecEnergyReact,     this, isResult|0);
  DDB.Double  ("",             "ElecEnergyHeat",   DC_Pwr,  "kW",     &m_dElecEnergyHeat ,     this, isResult|0);
  DDB.Text    ("");
  DDB.Double  ("TempFeed",     "Feed.T",           DC_T,    "C",      &m_TempKFeed,     this, isResult);//|noFileAtAll);
  DDB.Double  ("FinalT",       "",                 DC_T,    "C",      &m_TempKProd,     this, isResult|0);


  DDB.Text    ("");
  m_RB.Add_OnOff(DDB);

  DDB.Visibility();
  DDB.Text    ("");
  BuildDataDefnShowIOs(DDB, true);
  BuildDataDefnIOOpts(DDB);

  m_RB.BuildDataDefn(DDB);

  if (SolveSurgeMethod())
    {
    DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
    DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
    }

  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
	//if (Contents.SpillExists())
  //  DDB.Object(&Contents.OverFlow, this, NULL, NULL, DDB_RqdPage);
  DDB.Visibility();

  DDB.EndStruct();
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:53,代码来源:ECELL.CPP

示例5: Add_StandardDataDefn

void CrushBlk::Add_StandardDataDefn(DataDefnBlk & DDB, flag Vis)
  {
  DDEF_Flags Old = DDB.GetVisibility();
  DDB.Visibility(NSHM_All, Vis);
  DDB.Text("");
  DDB.CheckBox("TrackStatus", "", DC_, "", &bTrackStatus, this, isParm);
  static DDBValueLst DDB0[]={
    {(int)CM_PartCrv_Overall, "Overall_PartCrv"},
    {(int)CM_PartCrv_Individ, "Individual_PartCrv" },
    {(int)CM_SelBreak, "Select/Break"},
    {(int)CM_TestData_Overall, "Overall_TestData"},
    {(int)CM_TestData_Individ, "Individual_TestData" },
    //{(int)CM_JK, "JK" },
    {0}};
  DDB.Byte    ("Method",       "", DC_, "", xidMethod,      this, isParmStopped/*|DDEF_SETONCHANGE*/, DDB0);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_PartCrv_Overall || iMethod==CM_PartCrv_Individ));
  DDB.CheckBox("ForcePartCrv", "", DC_, "", &bForcePartCrv, this, isParm, DDBYesNo);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_TestData_Overall || iMethod==CM_TestData_Individ));
  DDB.CheckBox("EnterExtents", "", DC_, "", xidEnterExtents, this, isParmStopped, DDBYesNo);
  DDB.Visibility(NSHM_All, Vis && (iMethod==CM_JK));
  DDB.Double("",          "K1",         DC_L,    "mm",   &dK1,     this,  isParm);
  DDB.Double("",          "K2",         DC_L,    "mm",   &dK2,     this,  isParm);
  DDB.Double("",          "K3",         DC_,     "",     &dK3,     this,  isParm);
  DDB.Double("",          "t10",        DC_,     "",     &dt10,    this,  isParm);
  //DDB.Visibility(NSHM_All, Vis);
  DDB.SetVisibility(Old);
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:27,代码来源:Crush1.cpp

示例6: BuildDataDefn

void CEC_EquilTXPoly::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.Text  ("EquilTXPoly");
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,          &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  DDB.Double("K_Eq",             "",        DC_,     "",      &dK_Eq,                  &Eq, isResult);
  DDB.Double("K_Act",            "",        DC_,     "",      &dK_Act,                 &Eq, isResult);
  DDB.Double("ExtentError",      "",        DC_Frac, "%",     xid_ExtentError,         &Eq, isResult|noFile|noSnap|NAN_OK);
  if (m_bDoResTime)
    {
    //DDB.Double("K_Rt",           "",        DC_,     "",      &dK_Rt,                  &Eq, isResult);
    //DDB.Double("Defined_RT",     "",        DC_Time, "s",     &m_ddDefinedResTime,        &Eq, isParm);
    //m_ddDefinedResTime.BuildDataDefn(DDB, "RT_Ref", "",  DC_Time, "s",  xid_RTRef,   &Eq, "Rct", "Reqd");
    //m_ddActualResTime.BuildDataDefn(DDB, "RT",      "",  DC_Time, "s",  xid_ResTime, &Eq, "Actual", "Reqd");
    //DDB.Double("Actual_RT",      "",        DC_Time, "s",     &m_ddActualResTime,         &Eq, isParm);
    DDB.Double("Alpha",          "",        DC_,     "",      &m_dAlpha,                 &Eq, isResult);
    }

//  if (m_iXSpcId>=0)
//    {
//    DDB.String("ExtentSpc", "", DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
//    CCnvIndex dc;
//    pchar pCnvTxt;
//    SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%", dc, pCnvTxt);
//    m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "",  dc, pCnvTxt,  xid_RCTExtent, &Eq, "Rct", "Reqd");
//    }
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:29,代码来源:SR_CTRL.CPP

示例7: BuildDataDefn

/*This provides access to the variables of the model and calls the
BuildDataDefn for objects used by the model.*/
void CentrifugeMB::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);

  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  BuildDataDefnElevation(DDB);
  DDB.Text    (" ");

  DDB.Double  ("Density",    "Rho",           DC_Rho,  "kg/m^3", xidRho,         this, isResult|0);
  DDB.Double  ("Level",      "Lvl",           DC_Frac, "%",      xidLevel,       this, isResult|0);
  DDB.Double  ("Mass_Accum", "QmAcc",         DC_Qm,   "kg/s",   &m_QmAcc,       this, isResult|0);
  DDB.Double  ("Vol_Accum",  "QvAcc",         DC_Qv,   "L/s",    &m_QvAcc,       this, isResult|0);
  DDB.Visibility();

  DDB.Text    ("");
  DDB.Text    ("Requirements");
  DDB.CheckBox("On",                      "",                DC_,     "",       &fOn,                this, isParm);
  if (PrjFileVerNo()<49)
    DDB.Double  ("",           "SolidLoss",     DC_Frac, "%",      &RqdSolidsToFiltrate, this, isParm);//SolidLoss
  else
    DDB.Double  ("Rqd_Solids_To_Filtrate",  "RqdSolToFilt",    DC_Frac, "%",      &RqdSolidsToFiltrate,this, isParm);//SolidLoss
  DDB.Double  ("Rqd_Cake_Moisture",       "RqdCakeMoist",    DC_Frac, "%",      &RqdCakeMoist,       this, isParm);
  DDB.Double  ("Rqd_Wash_Efficiency",     "RqdWashEff",      DC_Frac, "%",      &WashEff,            this, isParm);
  DDB.Text    ("");
  DDB.Text    ("Results");
  //DDB.Double  ("Wash_Efficiency",         "WashEff",         DC_Frac, "%",      &ActWashEff,         this, isResult);//|noFile|noSnap);
  DDB.Double  ("Cake_Moisture",           "CakeMoist",       DC_Frac, "%",      &ActCakeLiq,         this, isResult);//|noFile|noSnap);
  DDB.Double  ("Cake_Solids",             "CakeSolids",      DC_Frac, "%",      &ActCakeSolids,      this, isResult);//|noFile|noSnap);
  DDB.Double  ("Filtrate_Solids",         "FiltSolids",      DC_Frac, "%",      &ActFiltSolids,      this, isResult);//|noFile|noSnap);
  DDB.Double  ("[email protected]",   "FiltSolConc25",   DC_Conc, "g/L",    &ActFiltSolConc,     this, isResult);//|noFile|noSnap);
  DDB.Double  ("[email protected]",    "[email protected]",   DC_Conc, "g/L",    &ActFiltSolConcT,    this, isResult);//|noFile|noSnap|InitHidden);
  DDB.Visibility(NM_Probal|SM_All|HM_All);
  //DDB.Byte    ("",                        "ScanEffSpecie",   DC_,     "",       &iScanEffSpecie,     this, isParm, SDB.DDBLiqSpList());
  //DDB.Double  ("Scandrett_Wash_Eff",      "ScandrettEff",    DC_Frac, "%",      &ActScandrettEff,    this, isResult);//|noFile|noSnap);
  DDB.Byte    ("",                        "WashComp",        DC_,     "",       &iWashEffSpecie,     this, isParm, SDB.DDBLiqSpList());
  DDB.Double  ("",                        "CompWashEff1",    DC_Frac, "%",      &dSpWashEff,         this, isResult);//|noFile|noSnap);
  DDB.Double  ("",                        "CompWashEff2",    DC_Frac, "%",      &dSpWashEff2,        this, isResult);//|noFile|noSnap);

  //DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  //DDB.Bool    ("",           "CakeDisch?",    DC_     , "",      &Disch,         this, isParm, DDBYesNo);
  DDB.Visibility();

  DDB.Text    (" ");
  m_RB.Add_OnOff(DDB);
  m_EHX.Add_OnOff(DDB);

  DDB.Text    (" ");
  BuildDataDefnShowIOs(DDB);

  m_RB.BuildDataDefn(DDB);
  m_EHX.BuildDataDefn(DDB);

  if (SolveSurgeMethod())
    {
    DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
    DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
    }

  DDB.EndStruct();
  }
开发者ID:abcweizhuo,项目名称:Test3,代码行数:62,代码来源:CNTRFGMB.CPP

示例8: BuildDataDefnElevation

void Mill1::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);

  DDB.Text("");
  DDB.CheckBox("On", "", DC_, "", &bOnLine, this, isParm);
  DDB.Text("Power");
  DDB.Double("InstalledPower", "Motor",     DC_Pwr,   "kW",    &Motor,      this, isParm);
  DDB.Double("PercentHeat",    "HeatPerc",  DC_Frac,  "%",     &Eff,        this, isParm);
  DDB.Double("Bond_WI",        "BondWI",    DC_WI ,   "kWh/t", &BWI,        this, isParm);
  DDB.Double("Calc_Power",     "UsedPower", DC_Pwr,   "kW",    &Power,      this, isResult|0);
  DDB.Double("Calc_Heat",      "HeatPower", DC_Pwr,   "kW",    &Heat,       this, isResult|0);

  DDB.Text("");
  DDB.Double("Density",        "Rho",       DC_Rho,  "kg/m^3", xidRho,      this, isResult|0);
  BuildDataDefnElevation(DDB);
  CB.Add_StandardDataDefn(DDB, true);

  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  DDB.Text("");
  DDB.Double("DischOnSpeed",   "",          DC_Frac,  "%",     &DischOnSpeed, this, isParm);
  MSB.BuildDataDefn(DDB, this, "Speed", 1);
  m_Pwr.BuildDataDefn(DDB);
  DDB.Visibility();
  
  m_RB.Add_OnOff(DDB);

  DDB.Text("");
  BuildDataDefnShowIOs(DDB);

  CB.Add_ObjectDataDefn(DDB, true);
  m_RB.BuildDataDefn(DDB);

  if (NetDynamicMethod())
    {
    DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
    DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
    }

  DDB.Object(&Disch,     this, NULL, NULL, DDB_RqdPage);

  
  DDB.EndStruct();
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:44,代码来源:Mill1.cpp

示例9: Add_OnOff

void CBlockEvaluator::Add_OnOff(DataDefnBlk &DDB, DDBPages PageIs)
  {
  BOOL DoIt=true;
  if (PrjFileVerNo()>=99)
    DoIt=DDB.BeginObject(m_pNd, "EB", "EB_Slct", 0, DDB_NoPage);
  
  if (DoIt)
    {
    DDB.String("", "EvalSeq.Feed", DC_, "", &m_sBlkSeqFeed, m_pNd, 0); 
    if (StateSemanticsOn())
      DDB.String("", "EvalSeq.Content", DC_, "", &m_sBlkSeqState, m_pNd, 0); 
    if (m_Options&BEO_WithMakeups)
      DDB.Long("Makeups", "", DC_, "", xidNMakeups, m_pNd, isParmStopped|SetOnChange); 
    if (m_Options&BEO_WithBleeds)
      DDB.Long("Bleeds",  "", DC_, "", xidNBleeds,  m_pNd, isParmStopped|SetOnChange); 

    //DDB.Text("");
    if (m_Options&BEO_WithMakeups)
      {
      for (int a=0; a<m_pMakeups.GetSize(); a++)
        m_pMakeups[a]->Add_OnOff(DDB, isParmStopped|SetOnChange, 100000+a*1000);
      }

    if (m_pRB)
      m_pRB->Add_OnOff(DDB, isParmStopped|SetOnChange);
    if (m_pHX)
      m_pHX->Add_OnOff(DDB, isParmStopped|SetOnChange);
    if (m_pEHX)
      m_pEHX->Add_OnOff(DDB, isParmStopped|SetOnChange);
    if (m_pVLE)
      m_pVLE->Add_OnOff(DDB, isParmStopped|SetOnChange);
    if (m_pEvap)
      m_pEvap->Add_OnOff(DDB, isParmStopped|SetOnChange);

    if (m_Options&BEO_WithBleeds)
      {
      for (int a=0; a<m_pBleeds.GetSize(); a++)
        m_pBleeds[a]->Add_OnOff(DDB, isParmStopped|SetOnChange, 200000+a*1000);
      }
    }

  if (PrjFileVerNo()>=99)
    DDB.EndObject();

  if (PrjFileVerNo()<99 && (DDB.DoingPutData() && DDB.ForFileSnpScn() || 0))
    {                      
    static DDBValueLst DDBBS[]={
      {0, "RB EHX VLE" },
      {1, "EHX RB VLE" },
      {0}};
    DDB.Byte("BlockActionSeq",         "",   DC_,  "",  xidOldBlkSeq, m_pNd, isParmStopped, DDBBS);
    }

  DDB.Text("");
  };
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:55,代码来源:BlockEvaluator.cpp

示例10: BuildDataDefn

void CTransformer::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this, "CTransformer", NULL, DDB_NoPage);
  DDB.Text("");
  DDB.Long       ("PriCfg",    "", DC_,   "",  xidTSCfgP, this, isParm, DDBCTTypes);
  DDB.Long       ("SecCfg",    "", DC_,   "",  xidTSCfgS, this, isParm, DDBCTTypes);
  DDB.Text("");
  DDB.Double       ("NomPriVolts",   "", DC_V,     "V",     &m_dPriV, this, isParm);
  DDB.Double       ("NomSecVolts",   "", DC_V,     "V",     &m_dSecV, this, isParm);
  DDB.Double       ("PriResist",     "", DC_Ohms,  "Ohms",  xidPriR,  this, isParm);
  DDB.Double       ("PriIndReact",   "", DC_Ohms,  "Ohms",  xidPriX,  this, isParm);
  DDB.Double       ("SecResist",     "", DC_Ohms,  "Ohms",  xidSecR,  this, isParm);
  DDB.Double       ("SecIndReact",   "", DC_Ohms,  "Ohms",  xidSecX,  this, isParm);
  DDB.Double       ("NoLoadCurrent", "", DC_I,     "A",     &m_dNLI,  this, isParm);
  DDB.Double       ("NoLoadPhase",   "", DC_Ang,   "deg",   &m_dNLA,  this, isParm);
  DDB.Double       ("HeatLoad",      "", DC_Pwr,   "W",     xidHtLoad,this, 0);
  DDB.Text("");
  m_tsPri.BuildDataDefn(DDB, 1, true);
  m_tsSec.BuildDataDefn(DDB, 2, true);
  DDB.EndStruct();
  }
开发者ID:abcweizhuo,项目名称:Test3,代码行数:21,代码来源:Transformer.cpp

示例11: BuildDataDefn

void CPipeTerm::BuildDataDefn(DataDefnBlk &DDB)
  {
  DDB.BeginStruct(this, NULL, NULL, DDB_NoPage);

  DDB.Text   ("Flow Conditions");
  DDB.Double ("Mass_Flow",    "Qm",       DC_Qm,   "kg/s",   xidQm,         this, isResult|noFile|noSnap);
  DDB.Double ("Vol_Flow",     "Qv",       DC_Qv,   "L/s",    xidQv,         this, isResult|noFile|noSnap);
  DDB.Double ("NVol_Flow",    "NQv",      DC_NQv,  "NL/s",   xidNQv,        this, isResult|noFile|noSnap);
  DDB.Double ("Temperature",  "T",        DC_T,    "C",      xidTemp,       this, isResult|noFile|noSnap);
  DDB.Double ("Density",      "Rho",      DC_Rho,  "kg/m^3", xidRho,        this, isResult|noFile|noSnap);
  DDB.Double ("NDensity",     "NRho",     DC_Rho,  "kg/m^3", xidNRho,       this, isResult|noFile|noSnap);
  DDB.Double ("PressureIn",   "PIn",      DC_P,    "kPag",   xidPIn,        this, isResult|noFile|noSnap);
  DDB.Double ("PressureOut",  "POut",     DC_P,    "kPag",   xidPOut,       this, isResult|noFile|noSnap);

  DDB.Visibility(NSHM_All);
  flag ParmOK=true;
  
  DDB.Visibility();
  DDB.Text  ("");
  DDB.Double("PressureOutRqd","POutRqd",  DC_P,    "kPag",   &m_dPOut,       this, isParm);
  DDB.Double("Head",          "",         DC_L,    "m",      &m_dHead,       this, isParm);

  BuildDataDefnElevation(DDB);
  
  DDB.Text  ("");
  m_FRB.BuildDataDefn(DDB, this, true);
  DDB.Visibility(NM_Dynamic|SM_All|HM_All);
  DDB.Text  ("");
  m_VPB.BuildDataDefn(DDB, this, "Posn", 1);
  DDB.Visibility(NSHM_All);

  if (NoFlwIOs()>0 && !DDB.ForFileSnpScn())
    IOFB(0,0)->BuildDataDefn(FBDDOpt_WithAll, DDB, this, "CtrlEqn", 2);

  DDB.Visibility();
  DDB.Object(&m_Flows, this, NULL, NULL, DDB_RqdPage);

  DDB.Text("");
  DDB.EndStruct();
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:40,代码来源:PipeTerm.CPP

示例12: BuildDataDefn

void Crusher::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);
  BuildDataDefnElevation(DDB);
  DDB.Text("");

  DDB.Text("");
  static DDBValueLst DDB0[]={
    {CM_PartCrv,  "PartitionCrv"},
    {CM_SelBreak, "Select/Break"},
    {0}};
  DDB.Byte  ("Method",   "", DC_,     "",  &iMethod,  this, isParm|DDEF_SETONCHANGE, DDB0);
//?  DDB.Bool("UseSelBrk",   "",  DC_,  "", &fUseSelBrk,   this, isParm, DDBYesNo);

  DDB.Text("");
  DDB.Double("Bond_WI",      "Bond_WI",    DC_WI ,  "kWh/t",  &BWI  ,   this, isParm);
  DDB.Double("Calc_Power",   "CalcPower",  DC_Pwr,  "kW",     &Power,   this, isResult|0);

  //DDB.Double("Density",      "Rho",  DC_Rho,  "kg/m^3", xidRho,   this, 0);
  //DDB.Double("Level",        "Lvl",  DC_Frac, "%",      xidLevel, this, 0);


  MSB.BuildDataDefn(DDB, this, "Speed", 1);
  m_Pwr.BuildDataDefn(DDB);
  //DDB.Object(&BWDist,    this);
  //DDB.Object(&EDist,     this);
  if (iMethod==CM_SelBreak)
    DDB.Object(&SelBrk, this);
  else
    DDB.Object(&DischPart, this);

  DDB.Object(&Disch,     this, NULL, NULL, DDB_RqdPage);
  

  DDB.EndStruct();
  };
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:36,代码来源:Crusher.cpp

示例13: BuildDataDefn

void HydroCyclone::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);
  DDB.Double("ByePass2Grits", "",       DC_Frac, "%",      &ByePass2Grits,  this,isParm);
  DDB.Double("OreToGrits",    "",       DC_Frac, "%",      &Ore2Grit,       this, DynMode() ? 0 : isParm);
  DDB.Double("LiqToGrits",    "",       DC_Frac, "%",      &Liq2Grit,       this, DynMode() ? 0 : isParm);

  DDB.Text("");
  GSM.Add_OnOff(DDB);
  GSM.BuildDataDefn(DDB, NULL, NULL, DDB_OptPage);

  DDB.Object(&PartCrv, this, NULL, NULL, DDB_RqdPage);


  DDB.EndStruct();
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:16,代码来源:HYDROCYC.CPP

示例14: BuildDataDefn

/*#F:This provides access to the variables of the model.*/
void X_Comp::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this);

  DDB.Text("");
  DDB.Double ("","PowerMaximum",         DC_Pwr,    "kW", &P_MaxPower,          this  ,isParm);
  DDB.Double ("","Psetpoint",            DC_P,    "kPag", &P_SetpointPressure,  this  ,isParm);
  DDB.Double ("","Polytropic_Eff",       DC_Frac,    "%", &P_PolytropicEff,     this  ,isParm);
  DDB.Double ("","Compressability",      DC_,         "", &P_Compressability,   this  ,isParm);
  DDB.Text("");

  DDB.Byte   ("","Status",               DC_,         "", &P_Status,            this  ,isParm, DDBOnOff);

  DDB.Text("");
  static DDBValueLst DDB0[] = {
    {0,    "Pressure"},
    {1,    "Speed"},
    {0}};
  DDB.Byte   ("","Control",              DC_,     "",     &Control,             this  ,isParm|SetOnChange|AffectsStruct, DDB0);
  dword IsPress=Control==0;
  dword IsSpeed=Control==1;
  DDB.Double ("","MinSpeed",             DC_pS,   "rpm",  &MinSpeed,            this  ,(IsSpeed?0:noView)|isParm);
  DDB.Double ("","MaxSpeed",             DC_pS,   "rpm",  &MaxSpeed,            this  ,(IsSpeed?0:noView)|isParm);
  DDB.Double ("","SpdTC",                DC_Time, "s",    &SpdTau,              this  ,(IsSpeed?0:noView)|isParm);
  DDB.Double ("","SpdSpt",               DC_Frac, "%",    &SpdSpt,              this  ,(IsSpeed?0:noView)|isParm);
  DDB.Double ("","SpdFbk",               DC_Frac, "%",    &SpdFbk,              this  ,(IsSpeed?0:noView));
  DDB.Double ("","Speed",                DC_pS,   "rpm",  &ActSpeed,            this  ,(IsSpeed?0:noView));
  DDB.Double ("","NetBoost",             DC_DP,   "kPa",  &TheBoost,            this  ,(IsSpeed?0:noView)|InitHidden);

  DDB.Double ("","SpeedRatio",           DC_Frac, "%",    &SpeedRatio,          this  ,(IsPress?0:noView)|isParm|NAN_OK); // Why? - CNM
  DDB.Text("");

  DDB.Text("");
  DDB.Double ("","SpecificHheaRat",      DC_Frac, "%",    &P_SpecificHeatRatio, this  ,0);
  DDB.Double ("","MolecularWeight",      DC_,     "",     &P_MolecularWeight,   this  ,0);
  DDB.Double ("","MMSCFD",               DC_,     "",     &MFlow,               this  ,0);
  DDB.Double ("","Pin",                  DC_P,    "kPag", &Pin,                 this  ,0);
  DDB.Double ("","Pout",                 DC_P,    "kPag", &Pout,                this  ,0);
  DDB.Double ("","Qin",                  DC_Qm,   "kg/s", &QinFlange,           this  ,0);
  DDB.Double ("","Qout",                 DC_Qm,   "kg/s", &QoutFlange,          this  ,0);
  DDB.Double ("","QvSrg",                DC_Qv,   "m^3/s",&QvSrg,               this  ,0);
  DDB.Double ("","QvIn",                 DC_Qv,   "m^3/s",&QvIn,                this  ,0);
  DDB.Double ("","Tin",                  DC_T,    "C",    &Tin,                 this  ,0);
  DDB.Double ("","Tout",                 DC_T,    "C",    &Tout,                this  ,0);
  DDB.Double ("","PowerUsage",           DC_Pwr,  "kW",   &CurrentPow,          this  ,0);
  DDB.Text("");

  DDB.Object(&SurgeCondition, this, NULL, "TestComment 1",DDB_RqdPage);
  DDB.Object(&Efficiency,     this, NULL, "TestComment 2",DDB_RqdPage);
  DDB.Object(&Speed,          this, NULL, "TestComment 3",DDB_RqdPage);

  DDB.EndStruct();
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:54,代码来源:MG_COMP.CPP

示例15: BuildDataDefn

void CActuator::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.BeginStruct(this, "CActuator", NULL, DDB_NoPage);
  DDB.Text("");
  DDB.CheckBoxBtn("On",           "",         DC_, "", &bOn,           this, isParmStopped, DDBYesNo);
  DDB.CheckBoxBtn("ShowCnv",      "",         DC_, "", &bWithCnvComment,this, isParmStopped, DDBYesNo);
  DDB.Visibility();
  DDB.Long("", "Ac_Cnt",  DC_, "", idmCount,       this, isParmStopped/*|AffectsStruct*/);
  DDB.Text("");
  if (m_DataBlk.GetSize()>0)
    {
    DDB.Button("Check_tags",   "", DC_,    "",    idmCheckBtn,      this, isParmStopped);
    DDB.Text("");
    DDB.String("State",        "", DC_,    "",    &m_StateLine[0],  this, noSnap|noFile);
    DDB.Text("Error:");
    DDB.String("Msg_1",        "", DC_,    "",    &m_StateLine[1],  this, noSnap|noFile);
    DDB.String("Msg_2",        "", DC_,    "",    &m_StateLine[2],  this, noSnap|noFile);
    DDB.Text("");
    }
  DDB.Text("----------------------------------------");

  static DDBValueLst DDBFail[]={
      {Fail_None,                         "None"             },
      {Fail_Hold,                         "Hold"             },
      {Fail_Hold|Fail_Noise,              "Hold,Noise"       },
      {Fail_MinVal,                       "MinVal"           },
      {Fail_MaxVal,                       "MaxVal"           },
      {Fail_LoVal,                        "LoVal"            },
      {Fail_HiVal,                        "HiVal"            },
      {Fail_MinVal|Fail_Ramp,             "MinVal,Ramp"      },
      {Fail_MaxVal|Fail_Ramp,             "MaxVal,Ramp"      },
      {Fail_LoVal|Fail_Ramp,              "LoVal,Ramp"       },
      {Fail_HiVal|Fail_Ramp,              "HiVal,Ramp"       },
      {Fail_MinVal|Fail_Noise,            "MinVal,Noise"     },
      {Fail_MaxVal|Fail_Noise,            "MaxVal,Noise"     },
      {Fail_LoVal|Fail_Noise,             "LoVal,Noise"      },
      {Fail_HiVal|Fail_Noise,             "HiVal,Noise"      },
      {Fail_MinVal|Fail_Ramp|Fail_Noise,  "MinVal,Ramp,Noise"},
      {Fail_MaxVal|Fail_Ramp|Fail_Noise,  "MaxVal,Ramp,Noise"},
      {Fail_LoVal|Fail_Ramp|Fail_Noise,   "LoVal,Ramp,Noise" },
      {Fail_HiVal|Fail_Ramp|Fail_Noise,   "HiVal,Ramp,Noise" },
      {0}};
  static DDBValueLst DDBXForms[]={
      {XF_None,   "None"   },
      {XF_Linear, "Linear" },
      //{XF_Sqr,    "Sqr"    },
      //{XF_Sqrt,   "Sqrt"   },
      {0}};
  static DDBValueLst DDBFilters[]={
      {Flt_None,        "None"   },
      {Flt_FirstOrder,  "FirstOrder" },
      {0}};
  static DDBValueLst DDBRawXLates[]={
      {XL_None,     "None"   },
      {XL_AtoD,     "AtoD"  },
      {XL_Linear,   "Linear" },
      //{XL_PulseEncode  "PulseWidth" },
      {0}};
  char Buff[128];
  Strng Tag;
  if (DDB.BeginArray(this, "Cfg", "Ac_Cfg", m_DataBlk.GetSize()))
    {
    for (int i=0; i<m_DataBlk.GetSize(); i++)
      {
      if (1)// i>0 && (i % 2)==1)
        {
        sprintf(Buff, "%d", i);
        DDB.Page(Buff, DDB_OptPage);
        }
      DDB.BeginElement(this, i);
      CActuatorBlk * T = m_DataBlk[i];
      Strng CnvTxt;
      if (bWithCnvComment && XRefsValid() && T->m_bValid)
        GetValidCnvTxt(T->m_OutputVar, CnvTxt);
      DDB.String("ID",                 "",            DC_,          "", idmCfgTags+(i*NoOfCfgTags)+1, this, isParmStopped|isTag);
      DDB.String("OutputTag",          "",            DC_,          "", idmCfgTags+(i*NoOfCfgTags)+2, this, isParmStopped|isTag);
      //DDB.Double("RequiredValue",      "ReqdVal",         DC_,          "", &T->m_dReqdValue,               this, isResult|noFileAtAll);
      DDB.Double("RequiredValue",      "Rqd",         DC_,          "", &T->m_dReqdValue,               this, isResult|noFileAtAll);
      if (CnvTxt.Len())
        DDB.TagComment(CnvTxt());

//      DDB.Byte  ("Transform",          "",            DC_,          "",   &T->m_Xform.m_iType,  this, isParm|SetOnChange, DDBXForms);
//      DDB.Visibility(NSHM_All, T->m_Xform.m_iType);
//      DDB.Float ("Xf.Factor",          "",            DC_,          "",   &T->m_Xform.m_dFactor,      this, isParm);
//      DDB.Float ("Xf.Bias",            "",            DC_,          "",   &T->m_Xform.m_dBias,        this, isParm);
//
//      DDB.Visibility();
//
//      DDB.Byte  ("Filter",             "",            DC_,          "",   &T->m_Flt.m_iType,   this, isParm|SetOnChange, DDBFilters);
//      DDB.Visibility(NSHM_All, T->m_Flt.m_iType == Flt_FirstOrder);
//      DDB.Float ("Flt.TimeConst",      "Flt.Tau",     DC_Time,      "s",  &T->m_Flt.m_dTau,    this, isParm);
//      DDB.Double("Flt.PrevValue",      "",            DC_,          "",   &T->m_Flt.m_dPrevValue, this, InitHidden);
//      DDB.Visibility();
//
//      DDB.Byte  ("Fail.Mode",          "",            DC_,          "",   &T->m_Fail.m_iType,   this, isParm|SetOnChange, DDBFail);
//      DDB.Float ("Fail.LoValue",       "",            DC_,          "",   &T->m_Fail.m_dLoValue,   this, isParm);
//      DDB.Float ("Fail.HiValue",       "",            DC_,          "",   &T->m_Fail.m_dHiValue,   this, isParm);
//      DDB.Float ("Fail.NoiseStdDev",   "",            DC_,          "%",  &T->m_Fail.m_dNoiseStdDevFrac,   this, isParm);
//      DDB.Float ("Fail.SlewTime",      "",            DC_Time,      "s",  &T->m_Fail.m_dSlewTime,   this, isParm);
//
//.........这里部分代码省略.........
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:101,代码来源:Actuator.cpp


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