Merge branch 'master' into clh
# Conflicts:
# SourceCode/Bond/Servo/CEquipment.cpp
# SourceCode/Bond/Servo/CEquipment.h
# SourceCode/Bond/Servo/DevicePropertyDlg.cpp
| | |
| | | m_listener.onCimStateChanged = listener.onCimStateChanged; |
| | | } |
| | | |
| | | void CEquipment::getProperties(std::vector<std::pair<std::string, std::string>>& container) |
| | | { |
| | | container.clear(); |
| | | // 示例:将一些属性添加到容器 |
| | | container.push_back(std::make_pair("DeviceName", "ServoMotor")); |
| | | container.push_back(std::make_pair("SerialNumber", "123456789")); |
| | | container.push_back(std::make_pair("Version", "1.0")); |
| | | } |
| | | |
| | | CStep* CEquipment::getStep(unsigned int addr) |
| | | { |
| | | auto iter = m_mapStep.find(addr); |
| | |
| | | MemoryBlock& getReadBitBlock(); |
| | | void setWriteBitBlock(unsigned int start, unsigned int end); |
| | | MemoryBlock& getWriteBitBlock(); |
| | | void getProperties(std::vector<std::pair<std::string, std::string>>& container); |
| | | int addStep(unsigned int addr, CStep* pStep); |
| | | CStep* getStep(unsigned int addr); |
| | | virtual void init(); |
| | |
| | | |
| | | // 获取所有设备属性 |
| | | std::vector<std::pair<std::string, std::string>> properties; |
| | | //pEquipment->getProperties(properties); |
| | | pEquipment->getProperties(properties); |
| | | |
| | | // 获取ListCtrl的客户区域 |
| | | CRect rect; |