312 google::protobuf::Message>
324 public:
void SetMessage(
const google::protobuf::Message *_reqMsg)
332 this->reqMsg = _reqMsg->New();
333 this->reqMsg->CopyFrom(*_reqMsg);
340 public:
void SetResponse(
const google::protobuf::Message *_repMsg)
348 this->repMsg = _repMsg->New();
349 this->repMsg->CopyFrom(*_repMsg);
361 if (!this->reqMsg->SerializeToString(&_buffer))
363 std::cerr <<
"ReqHandler::Serialize(): Error serializing the request"
375 this->result = _result;
377 this->repAvailable =
true;
378 this->condition.notify_one();
385 return this->reqMsg->GetTypeName();
388 std::cerr <<
"ReqHandler::ReqTypeName() Warning: Using ReqTypeName() "
389 <<
"without type information" <<
std::endl;
398 return this->repMsg->GetTypeName();
401 std::cerr <<
"ReqHandler::RepTypeName() Warning: Using RepTypeName() "
402 <<
"without type information" <<
std::endl;
408 private: google::protobuf::Message *reqMsg =
nullptr;
411 private: google::protobuf::Message *repMsg =
nullptr;