flag CCctBreaker::GetModelAction(CMdlActionArray & Acts) { Acts.SetSize(0); Acts.SetAtGrow(0, CMdlAction(0, MAT_State, !m_bOn, "On", 1)); Acts.SetAtGrow(1, CMdlAction(1, MAT_State, m_bOn, "Off", 0)); Acts.SetAtGrow(2, CMdlAction(2, MAT_Switch)); return true; };
flag CPipeTerm::GetModelAction(CMdlActionArray & Acts) { //CMdlAction {MAT_NULL, MAT_State, MAT_Value}; CMdlAction M0(0, MAT_State, !m_VPB.On(), "Open", 1); CMdlAction M1(1, MAT_State, m_VPB.On(), "Close", 0); CMdlAction M2(2, MAT_Value, m_VPB.On(), "Manual Posn (%)", true, m_VPB.ManualPosition(this)*100, 0.0, 100.0, m_VPB.ActualPosition(this, &m_FRB)*100); Acts.SetSize(0); Acts.SetAtGrow(0, M0); Acts.SetAtGrow(1, M1); Acts.SetAtGrow(2, M2); Acts.SetAtGrow(3, CMdlAction(3, MAT_Switch)); return True; };