310 google::protobuf::Message>
322 public:
void SetMessage(
const google::protobuf::Message *_reqMsg)
330 this->reqMsg = _reqMsg->New();
331 this->reqMsg->CopyFrom(*_reqMsg);
338 public:
void SetResponse(
const google::protobuf::Message *_repMsg)
346 this->repMsg = _repMsg->New();
347 this->repMsg->CopyFrom(*_repMsg);
359 if (!this->reqMsg->SerializeToString(&_buffer))
361 std::cerr <<
"ReqHandler::Serialize(): Error serializing the request"
373 this->result = _result;
375 this->repAvailable =
true;
376 this->condition.notify_one();
386 std::cerr <<
"ReqHandler::ReqTypeName() Warning: Using ReqTypeName() "
387 <<
"without type information" <<
std::endl;
399 std::cerr <<
"ReqHandler::RepTypeName() Warning: Using RepTypeName() "
400 <<
"without type information" <<
std::endl;
406 private: google::protobuf::Message *reqMsg =
nullptr;
409 private: google::protobuf::Message *repMsg =
nullptr;