28 lines
415 B
C++
28 lines
415 B
C++
|
#include "Interactive.h"
|
|||
|
|
|||
|
|
|||
|
Interactive::Interactive() {
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
Interactive::~Interactive() {
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
void Interactive::Init() {
|
|||
|
m_zmq = new ZeroMq();
|
|||
|
m_zmq->SetCallBack(&Interactive::ParamUpdateFunc, &Interactive::AlarmHandleFunc);
|
|||
|
m_zmq->Subscribe();
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
void Interactive::ParamUpdateFunc(std::string& msg) {
|
|||
|
printf(msg.c_str());
|
|||
|
}
|
|||
|
|
|||
|
void Interactive::AlarmHandleFunc(std::string& msg) {
|
|||
|
printf(msg.c_str());
|
|||
|
}
|