示例#1
0
long CDemoSM::DefinedPropertyInfo(long Index, MPropertyInfo & Info)
  {
  long Inx=Index;//(Index-MSpModelBase::DefinedPropertyCount());
  switch (Inx)
    {
    case 0: Info.SetStructName("Props"); //NB: The "struct name" is used as part of tag! Recomend "Props" for compatability with other properties models.
            Info.Set(ePT_Double,    "Fixed",       "", MC_,    "",       0,      0,  MP_Result|MP_NoFiling, "A Desc"); return Inx;
    case 1: Info.Set(ePT_Double,    "Settable",    "", MC_,    "",       0,      0,  MP_HardMin|MP_Parameter, "A Desc"); return Inx;
    }
  return -1;
  };
示例#2
0
long CLimnStream::DefinedPropertyInfo(long Index, MPropertyInfo & Info)
  {
  long Inx=Index;//(Index-MSpModelBase::DefinedPropertyCount());
  switch (Inx)
    {
    case idGetValue:  Info.SetStructName("DemoQuals");
                      Info.Set(ePT_Double,    "Get",       "", MC_,    "",       0,      0,  MP_Result|MP_NoFiling, "A Desc"); return Inx;
    case idSetValue:  Info.Set(ePT_Double,    "Set",       "", MC_,    "",       0,      0,  MP_HardMin|MP_Parameter, "A Desc"); return Inx;
    case idCalcOre:   Info.Set(ePT_Double,    "CalcOre",   "", MC_,    "",       0,      0,  MP_Result|MP_NoFiling, "Mass Ore"); return Inx;
    case idCalcDmd:   Info.Set(ePT_Double,    "CalcDmd",   "", MC_,    "",       0,      0,  MP_Result|MP_NoFiling, "Mass Diamond"); return Inx;
    }
  return -1;
  };