| 69 | } |
| 70 | |
| 71 | std::string Action::toString() const { |
| 72 | std::stringstream strs; |
| 73 | strs << "{id: " << this->getId() << ", act: " << actName[this->_actionType] << |
| 74 | ", value: " << this->_qValue << "}"; |
| 75 | return strs.str(); |
| 76 | } |
| 77 | |
| 78 | OperatePtr Action::toOperate() const { |
| 79 | OperatePtr opt = std::make_shared<DeviceOperateWrapper>(); |