301 google::protobuf::Message>
313 public:
void SetMessage(
const google::protobuf::Message *_reqMsg)
321 this->reqMsg = _reqMsg->New();
322 this->reqMsg->CopyFrom(*_reqMsg);
329 public:
void SetResponse(
const google::protobuf::Message *_repMsg)
337 this->repMsg = _repMsg->New();
338 this->repMsg->CopyFrom(*_repMsg);
350 if (!this->reqMsg->SerializeToString(&_buffer))
352 std::cerr <<
"ReqHandler::Serialize(): Error serializing the request"
364 this->result = _result;
366 this->repAvailable =
true;
367 this->condition.notify_one();
377 std::cerr <<
"ReqHandler::ReqTypeName() Warning: Using ReqTypeName() "
378 <<
"without type information" <<
std::endl;
390 std::cerr <<
"ReqHandler::RepTypeName() Warning: Using RepTypeName() "
391 <<
"without type information" <<
std::endl;
397 private: google::protobuf::Message *reqMsg =
nullptr;
400 private: google::protobuf::Message *repMsg =
nullptr;