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


C++ DataDefnBlk类代码示例

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


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

示例1: BuildDataDefn

void CEC_FinalConc::BuildDataDefn(DataDefnBlk & DDB)
  {
  Strng T;
  T.Set("Final Conc %s", m_Spc.m_Name());

  DDB.Text  (T());
  DDEF_Flags VFlags=DDB.GetVisibility();
  DDB.String("ExtentType",        "",        DC_,     "",      xid_RCTExtentType,          &Eq, SetOnChange|isParm, DDBExtentTypes);
  DDB.SetVisibility(VFlags);

  if (m_Spc.m_ReactTerm>=0 || m_Spc.m_ProdTerm>=0)
    {
    CCnvIndex dc;
    pchar pCnvTxt;
    SDB.AddSpCnv(DC_Conc, SDB[m_Spc.m_SpcId].SymOrTag(), "g/L", dc, pCnvTxt);
    Strng S,C("Rct"),R("Reqd");
    if (Valid(m_dRqdTemp))
      S.Set("@%.2f", K2C(m_dRqdTemp));
    else
      S="@FinalT";
    C+=S;
    R+=S;
    m_ddRqdConc.BuildDataDefn(DDB, "Conc_Rqd", "", dc, pCnvTxt, xid_RCTExtent, &Eq, C(), R());
    DDB.Double("Conc_MeasTemp",    "",          DC_T,     "C",  xid_RCTFinalConcT,  &Eq, isResult|noFile|noSnap|InitHidden);
    DDB.Double("Conc_EOStep",      "Conc_Act",  DC_,      "",   &m_dKEOStep,             &Eq, isResult);
    DDB.TagComment(S());
    DDB.Double("Conc_Final",       "",          DC_,      "",   &m_dKFinal,              &Eq, isResult|NAN_OK);
    DDB.TagComment(S());
    DDB.Double("ExtentError",      "",          DC_Frac,  "%",  xid_ExtentError, &Eq, isResult|noFile|noSnap|NAN_OK);
    }
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:31,代码来源:SR_CTRL.CPP

示例2: BuildDataDefn

void PE_Linear::BuildDataDefn(DataDefnBlk & DDB)
  {
  DDB.Double ("Resistance",   "Resistn",  DC_,     "",      &R_Fxd,     NULL,  isParm);
  DDB.Double ("PressDrop",   "DP",        DC_DP,    "kPa",  &m_dDP,     NULL, isResult);
  //DDB.Double ("Length",       "",         DC_L,    "m",     &Len_Rqd,      NULL,  isParmStopped);
//  DDB.Double ("Diam",         "",         DC_L,    "mm",    &Diam,         NULL,  isParm);
  BuildDataDefnOveride(DDB);
  };
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:8,代码来源:PPENEQNS.CPP

示例3: 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

示例4: BuildDataDefnEnd

void CEC_FracExt::BuildDataDefnEnd(DataDefnBlk & DDB)
  {
  if (!DDB.ForFileSnpScn() && RB.sm_ChgVars)
    {
    if (RB.sm_ChgVars & SRSC_Mass)
      {
      if (DDB.BeginStruct(&Eq, "MsChg", NULL, DDB_NoPage, -1, 0|MarkerClosed))
        {
        for (int i=0; i<Eq.Reactant.GetSize(); i++)
          {
          DDB.Double(SDB[Eq.Reactant[i].SpcId].SymOrTag(), "", DC_Qm, "kmol/s", &Eq.Reactant[i].m_dMsXfer, &Eq, isResult|noFileAtAll);
          }
        for (int i=0; i<Eq.Product.GetSize(); i++)
          DDB.Double(SDB[Eq.Product[i].SpcId].SymOrTag(), "", DC_Qm, "kmol/s", &Eq.Product[i].m_dMsXfer, &Eq, isResult|noFileAtAll);
        }
      DDB.EndStruct();
      }

    if (RB.sm_ChgVars & SRSC_Molar)
      {
      if (DDB.BeginStruct(&Eq, "MlChg", NULL, DDB_NoPage, -1, 0|MarkerClosed))
        {
        for (int i=0; i<Eq.Reactant.GetSize(); i++)
          {
          DDB.Double(SDB[Eq.Reactant[i].SpcId].SymOrTag(), "", DC_QKgMl, "kmol/s", &Eq.Reactant[i].m_dMlXfer, &Eq, isResult|noFileAtAll);
          }
        for (int i=0; i<Eq.Product.GetSize(); i++)
          DDB.Double(SDB[Eq.Product[i].SpcId].SymOrTag(), "", DC_QKgMl, "kmol/s", &Eq.Product[i].m_dMlXfer, &Eq, isResult|noFileAtAll);
        }
      DDB.EndStruct();
      }
    }
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:33,代码来源:SR_CTRL.CPP

示例5: BuildDataDefn

void TE_KFact::BuildDataDefn(DataDefnBlk & DDB)
  {
  KConst.BuildDataDefn(DDB, "KConst", "", DC_,    "",      xidKConst, NULL,   "Initial", "Required");
  DDB.Byte   ("Type",       "",           DC_,    "",      &iType,  NULL,  isParm|SetOnChange, DDBTT);
  DDB.Double ("PipeDiam",   "D-Pipe",     DC_L,   "mm",    xidPDiam,  NULL,  isParmStopped);
  DDB.Double ("Density",    "Rho",        DC_Rho, "kg/m^3",&dDensMeas, NULL, isResult);
  DDB.Double ("Viscosity",  "Visc",       DC_Visc,"cP",    &dViscMeas, NULL, isResult);
  DDB.Double ("Velocity",   "Vel",        DC_Ldt, "m/s",   &dVelMeas,  NULL, isResult);
  DDB.Double ("FricFac",    "fT",         DC_,    "",      &dFricFac,  NULL, isResult);
  m_PhD.KFact.BuildDataDefn(DDB, "ResistCoeff", "K", DC_, "", xidKFact, NULL, "Calculated", "Required");
  DDB.Double ("PressDrop",   "DP",        DC_DP,    "kPa",    &m_dDP,     NULL, isResult);
  BuildDataDefnOveride(DDB);
  };
开发者ID:abcweizhuo,项目名称:Test3,代码行数:13,代码来源:M_XFER.CPP

示例6: DoBuildDataDefn

void CBBBase::DoBuildDataDefn(DataDefnBlk & DDB)
  {
  if (m_pMethod)
    {
    Method.m_pDDB=&DDB;
    if (Method.m_pUnitDef->m_AddUsrPrefix)
      DDB.BeginStruct(m_pNd, "Usr", NULL, DDB_NoPage);
    Method.BuildDataFields();
    if (Method.m_pUnitDef->m_AddUsrPrefix)
      DDB.EndStruct();

    Method.m_pDDB=NULL;
    }
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:14,代码来源:BBBase.cpp

示例7: BuildDataDefn

void VLL_Sep::BuildDataDefn(DataDefnBlk &DDB)
  {
  DDB.BeginStruct(this);
  DDB.SuppressNextBlock();
  FlashTank::BuildDataDefn(DDB);
  DDB.Page    ("Boot", DDB_RqdPage);
  DDB.Double  ("",                    "Boot.IF",     DC_Frac, "%",       xidBH2oIf,    this, 0);
  DDB.Double  ("",                    "Boot.Volume", DC_Vol,  "m^3",     &BootVolume,  this, isParm);
  DDB.Double  ("",                    "Boot.Liq",    DC_M,    "kg",      &TotalSettled,this, (fDoDbgBrk ? isParm : 0)|InitHidden);
  //DDB.Double  ("H2ORemoveEfficiency","H2ORemEff",   DC_Frac, "%",       &H2ORemEff,   this, isParm);
  DDB.Double  ("RemovalEfficiency",   "RemEff",      DC_Frac, "%",       &H2ORemEff,   this, isParm);
  DDB.Double  ("H2oSettled",          "", DC_M, "kg", &H2oSettled,   this, isParmConstruct|InitHidden);
  DDB.Double  ("MEGSettled",          "", DC_M, "kg", &MEGSettled,   this, isParmConstruct|InitHidden);
  DDB.Text   (" ");
  DDB.EndStruct();
  }
开发者ID:abcweizhuo,项目名称:Test3,代码行数:16,代码来源:MG_SEP.CPP

示例8: 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

示例9: 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

示例10: Add_ObjectDataDefn

void CrushBlk::Add_ObjectDataDefn(DataDefnBlk & DDB, flag Vis)
  {
  DDEF_Flags Old = DDB.GetVisibility();
  DDB.Visibility(NSHM_All, Vis);
  switch (iMethod)
    {
    case CM_PartCrv_Overall:
    case CM_PartCrv_Individ:
      DDB.Object(&DischParts, this, NULL, NULL, DDB_RqdPage);
      break;
    case CM_SelBreak:
    case CM_JK:
      DDB.Object(&SelBrk, this, NULL, NULL, DDB_RqdPage);
      break;
    case CM_TestData_Overall:
    case CM_TestData_Individ:
      if (!bEnterExtents)
        DDB.Object(&DataParts, this, NULL, NULL, DDB_RqdPage);
      DDB.Object(&Extents, this, NULL, NULL, DDB_RqdPage);
      break;
    }
  DDB.SetVisibility(Old);
  }
开发者ID:ChrisMoreton,项目名称:Test3,代码行数:23,代码来源:Crush1.cpp

示例11: 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

示例12: BuildDataDefn

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

  BuildDataDefnElevation(DDB);

  DDB.Visibility();
	DDB.Text    ("");
  static DDBValueLst DDB0[]={
    {(int)MEM_Scandrett, "ScandrettEff"},
    {(int)MEM_Mixing, "MixingEff", MDD_Hidden }, //this has bugs, keep hidden!
    {0}};
  static DDBValueLst DDB1[]={
    {(int)True,  "g/L_Solids"},
    {(int)False, "%_Solids" },
    {0}};
  if (PrjFileVerNo()<49)
    {
    DDB.Text    ("Requirements");
    DDB.CheckBox("On",                  "",             DC_,     "",    &fOn,                this, isParm);
  	DDB.Byte    ("Eff_Specie",          "RqdSpecie",    DC_,     "",    &iScanEffSpecie,     this, isParm, SDB.DDBLiqSpList());
    DDB.Double  ("Scandrett_wash_eff",  "ScandrettEff", DC_Frac, "%",   &ScandrettEff,       this, isParm);
    DDB.Bool    ("U/FMethod",           "SolidSpec",    DC_,      "",   &SA,                 this, isParm, DDB1);
    if (SA)
      DDB.Double("Reqd_UFlowSolids",    "R_USol",       DC_Conc, "g/L", &RqdUFSolidsConc25,   this, isParm);
    else
      DDB.Double("U/F_Solids",          "U/FSolids",    DC_Frac, "%",   &RqdUFSolids,        this, isParm);
    DDB.Text    ("Results");
	  DDB.Double  ("UnderFlow_Solids",    "UFSolids",     DC_Frac, "%",   &UFSolids,		  	   this, isResult|0);
	  DDB.Double  ("UnderFlow_Specie",    "UFSpecie",     DC_Conc, "g/L", &UFCaustic,					 this, isResult|0);
	  DDB.Double  ("OverFlow_Specie",     "OFSpecie",     DC_Conc, "g/L", &OFCaustic,					 this, isResult|InitHidden);
    }
  else
    {
    DDB.Text    ("Requirements");
    DDB.CheckBox("On",                      "",                DC_,     "",       &fOn,                this, isParm);
    DDB.Byte    ("",                        "ScanEffSpecie",   DC_,     "",       &iScanEffSpecie,     this, isParm, SDB.DDBLiqSpList());
    DDB.Byte    ("Wash_Eff_Method",         "EffMethod",       DC_,      "",      &iEffMethod,         this, isParm, DDB0);
    DDB.Visibility(NSHM_All, iEffMethod==MEM_Mixing);
    DDB.Double  ("Mixing_Efficiency",       "MixingEff",       DC_Frac, "%",      &MixEff,             this, isParm);
    DDB.Visibility(NSHM_All, iEffMethod==MEM_Scandrett);
    DDB.Double  ("Rqd_Scandrett_Wash_Eff",  "RqdScandrettEff", DC_Frac, "%",      &ScandrettEff,       this, isParm);
    DDB.Visibility();
    DDB.Bool    ("UnderFlow_Method",        "Method",          DC_,      "",      &SA,                 this, isParm, DDB1);
    DDB.Visibility(NSHM_All, SA);
    DDB.Double  ("Rqd_U/[email protected]",   "RqdUFSolConc25",  DC_Conc, "g/L",    &RqdUFSolidsConc25,  this, isParm);
    DDB.Visibility(NSHM_All, !SA);
    DDB.Double  ("Rqd_UnderFlow_Solids",    "RqdUFSolids",     DC_Frac, "%",      &RqdUFSolids,        this, isParm);
    DDB.Visibility();
    DDB.Text    ("");
    DDB.Text    ("Results");
    DDB.Double  ("UnderFlow_Solids",        "UFSolids",        DC_Frac, "%",      &UFSolids,           this, isResult|0);
    //DDB.Double  ("OverFlow_Solids",         "OFSolids",        DC_Frac, "%",      &OFSolids,           this, isResult|InitHidden);
    DDB.Double  ("[email protected]", "UFSolConc25",     DC_Conc, "g/L",    &ActUFSolidsConc25,  this, isResult|InitHidden);
    //DDB.Double  ("[email protected]",  "OFSolConc25",     DC_Conc, "g/L",    &ActOFSolidsConc25,  this, isResult|InitHidden);
    DDB.Double  ("Scandrett_Wash_Eff",      "ScandrettEff",    DC_Frac, "%",      &ActScandrettEff,    this, isResult);//|noFile|noSnap);
    DDB.Double  ("UnderFlow_Specie",        "UFSpecie",        DC_Conc, "g/L",    &UFCaustic,				   this, isResult|0);
    DDB.Double  ("OverFlow_Specie",         "OFSpecie",        DC_Conc, "g/L",    &OFCaustic,				   this, isResult|0);
    DDB.Double  ("ByPassGuess",             "",                DC_,     "",       &ByPassGuess,				 this, noView|isParm|NAN_OK);
    DDB.Double  ("WashByPassGuess",         "",                DC_,     "",       &WashByPassGuess,		 this, noView|isParm|NAN_OK);
    }

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

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

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

  DDB.Visibility();

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

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

示例13: BuildDataDefn

void CSzSSA::BuildDataDefn(DataDefnBlk & DDB)
  {
//  DDB.CheckBox("SetSAM",        "",     DC_,          "",       &m_bSetSAM,         this,  m_bSAMCalcd ? 0 : isParm);
  if (DDB.BeginStruct(this, "SSA", 0))
    {
    DDB.Byte    ("",              "Method",     DC_,          "",       &m_iMethod,            this, 0/*isParm*/, DDBMeth);
    DDB.Visibility(NSHM_All ,m_iMethod==SSA_Independent);
    if (!DDB.ForFileSnpScn())
      DDB.CheckBoxBtn("SetData",  "",           DC_,          "",       xidSSAAllowSet,        this, isParm);
    DDB.Long    ("",              "Solids",     DC_,          "",       &m_iSolids,            this, (m_bHasPSD || !DataSettable()) ? 0 : isParm, SDB.DDBSolSpListDash());
    DDB.Visibility();
    DDB.Double  ("SeedSurfAreaM", "SAM",        DC_SurfAreaM, "m^2/g",  xidSSAPartSAM,         this, (m_bHasPSD || !DataSettable()) ? 0 : isParm);
    DDB.Double  ("SeedSurfAreaL", "SAL",        DC_SurfAreaL, "m^2/L",  xidSSAPartSAL,         this, noFile);
    DDB.Double  ("#/s",           "",           DC_,          "",       xidSSAPartNoperSec,    this, noFile|InitHidden);
    DDB.Double  ("#/L",           "",           DC_,          "",       xidSSAPartNoperVol,    this, noFile|InitHidden);
    DDB.Double  ("PartDiam",      "D",          DC_L,         "um",     xidSSAPartDiam,        this, ((m_bHasPSD || !DataSettable()) ? 0 : isParm)|noFile);
    DDB.Double  ("SolidsQm",      "",           DC_Qm,        "kg/s",   xidSSAPartSolidsQm,    this, noFile|InitHidden);
    }
  DDB.EndStruct();
  }
开发者ID:abcweizhuo,项目名称:Test3,代码行数:20,代码来源:SqSSA.cpp

示例14: 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

示例15: 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


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