1 #ifndef IM_AM_MONITORING_QT_GUIS_MODBUS_TCP_HANDLER_HPP 2 #define IM_AM_MONITORING_QT_GUIS_MODBUS_TCP_HANDLER_HPP 5 #include <industrial_modbus_tcp/ConfigureRequest.h> 13 #include <QMessageBox> 14 #include <QPushButton> 16 #include <QTableWidget> 18 #include <QVBoxLayout> 25 enum TAB_INDEX :
unsigned {
BOOL,
INT8,
UINT8,
INT16,
UINT16,
INT32,
UINT32,
INT64,
UINT64,
FLOAT32,
FLOAT64,
SIZE};
30 ModbusTCPHandler(industrial_modbus_tcp::ModbusHandler h = industrial_modbus_tcp::ModbusHandler());
33 industrial_modbus_tcp::ModbusHandler
getHandler();
40 void addRegister(
const industrial_modbus_tcp::Register &
r, QTableWidget *table);
41 void addBigEndian(
const bool value, QTableWidget *table);
42 void addBool(
const industrial_modbus_tcp::Bool &
d);
43 void addInt8(
const industrial_modbus_tcp::Int8 &d);
44 void addUInt8(
const industrial_modbus_tcp::UInt8 &d);
45 void addInt16(
const industrial_modbus_tcp::Int16 &d);
46 void addUInt16(
const industrial_modbus_tcp::UInt16 &d);
47 void addInt32(
const industrial_modbus_tcp::Int32 &d);
48 void addUInt32(
const industrial_modbus_tcp::UInt32 &d);
49 void addInt64(
const industrial_modbus_tcp::Int64 &d);
50 void addUInt64(
const industrial_modbus_tcp::UInt64 &d);
51 void addFloat32(
const industrial_modbus_tcp::Float32 &d);
52 void addFloat64(
const industrial_modbus_tcp::Float64 &d);
61 industrial_modbus_tcp::Register &r);
ModbusTCPHandler(industrial_modbus_tcp::ModbusHandler h=industrial_modbus_tcp::ModbusHandler())
void addBigEndian(const bool value, QTableWidget *table)
virtual ~ModbusTCPHandler()
industrial_modbus_tcp::ModbusHandler getHandler()
void addInt32(const industrial_modbus_tcp::Int32 &d)
QPushButton * remove_data_
void addInt64(const industrial_modbus_tcp::Int64 &d)
void addUInt64(const industrial_modbus_tcp::UInt64 &d)
void addFloat32(const industrial_modbus_tcp::Float32 &d)
std::vector< QTableWidget * > tables_
void addFloat64(const industrial_modbus_tcp::Float64 &d)
void addInt8(const industrial_modbus_tcp::Int8 &d)
void addInt16(const industrial_modbus_tcp::Int16 &d)
void addRegister(const industrial_modbus_tcp::Register &r, QTableWidget *table)
void addUInt8(const industrial_modbus_tcp::UInt8 &d)
void readRegisterTable(const QTableWidget *table, const unsigned row, industrial_modbus_tcp::Register &r)
void addUInt32(const industrial_modbus_tcp::UInt32 &d)
void addUInt16(const industrial_modbus_tcp::UInt16 &d)
void addBool(const industrial_modbus_tcp::Bool &d)