| | |
| | | |
| | | } |
| | | |
| | | void CEqAlarmStep::getAttributeVector(CAttributeVector& attrubutes) |
| | | { |
| | | CStep::getAttributeVector(attrubutes); |
| | | |
| | | attrubutes.addAttribute(new CAttribute("Alarm State", |
| | | std::to_string(m_nAlarmState).c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Unit ID", |
| | | std::to_string(m_nUnitId).c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Alarm Level", |
| | | std::to_string(m_nAlarmLevel).c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Alarm Code", |
| | | std::to_string(m_nAlarmCode).c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Alarm ID", |
| | | std::to_string(m_nAlarmId).c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Text", |
| | | m_strText.c_str(), "")); |
| | | attrubutes.addAttribute(new CAttribute("Description", |
| | | m_strDescription.c_str(), "")); |
| | | } |
| | | |
| | | int CEqAlarmStep::onReadData() |
| | | { |
| | | CStep::onReadData(); |