| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Generated by the gRPC C++ plugin.
- // If you make any local change, they will be lost.
- // source: PathPlanning.proto
- #include "PathPlanning.pb.h"
- #include "PathPlanning.grpc.pb.h"
- #include <grpcpp/impl/codegen/async_stream.h>
- #include <grpcpp/impl/codegen/async_unary_call.h>
- #include <grpcpp/impl/codegen/channel_interface.h>
- #include <grpcpp/impl/codegen/client_unary_call.h>
- #include <grpcpp/impl/codegen/method_handler_impl.h>
- #include <grpcpp/impl/codegen/rpc_service_method.h>
- #include <grpcpp/impl/codegen/service_type.h>
- #include <grpcpp/impl/codegen/sync_stream.h>
- namespace pathplanning {
- static const char* CPathPlanning_method_names[] = {
- "/pathplanning.CPathPlanning/CalPath",
- };
- std::unique_ptr< CPathPlanning::Stub> CPathPlanning::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
- (void)options;
- std::unique_ptr< CPathPlanning::Stub> stub(new CPathPlanning::Stub(channel));
- return stub;
- }
- CPathPlanning::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
- : channel_(channel), rpcmethod_CalPath_(CPathPlanning_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
- {}
- ::grpc::Status CPathPlanning::Stub::CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) {
- return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CalPath_, context, request, response);
- }
- ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* CPathPlanning::Stub::AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pathplanning::PathPlanningReply>::Create(channel_.get(), cq, rpcmethod_CalPath_, context, request, true);
- }
- ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* CPathPlanning::Stub::PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return ::grpc::internal::ClientAsyncResponseReaderFactory< ::pathplanning::PathPlanningReply>::Create(channel_.get(), cq, rpcmethod_CalPath_, context, request, false);
- }
- CPathPlanning::Service::Service() {
- AddMethod(new ::grpc::internal::RpcServiceMethod(
- CPathPlanning_method_names[0],
- ::grpc::internal::RpcMethod::NORMAL_RPC,
- new ::grpc::internal::RpcMethodHandler< CPathPlanning::Service, ::pathplanning::PathPlanningRequest, ::pathplanning::PathPlanningReply>(
- std::mem_fn(&CPathPlanning::Service::CalPath), this)));
- }
- CPathPlanning::Service::~Service() {
- }
- ::grpc::Status CPathPlanning::Service::CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) {
- (void) context;
- (void) request;
- (void) response;
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- } // namespace pathplanning
|