GrpcPrint/TestClient/FuncTest.cpp

22 lines
570 B
C++

#include "FuncTest.h"
#include "FunC.h"
#include "../utils/ConverType.h"
#include "../utils/StringHelper.h"
void FuncTest::PushMsg(WRITETYPE dataType, const string& nameKey, const string& strValue, DATATYPE valueType, DATAHANDLE handleType) {
if (m_streamClient) {
WriteData msg;
msg.dataType = dataType;
msg.nameKey = nameKey;
msg.strValue = strValue;
msg.valueType = valueType;
msg.handleType = handleType;
m_streamClient->PushMsg(msg);
}
}
void FuncTest::PushMsg(const WriteData& wd) {
if (m_streamClient) {
m_streamClient->PushMsg(wd);
}
}