26 lines
591 B
C
26 lines
591 B
C
|
|
//
|
||
|
|
// Created by lgv on 2025/8/25.
|
||
|
|
//
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "device_manager/device_manager.h"
|
||
|
|
#include "cmvr/api/touch_service.grpc.pb.h"
|
||
|
|
|
||
|
|
namespace cmvr {
|
||
|
|
namespace service {
|
||
|
|
class gRPCTouchServiceImpl final : public api::TouchService::Service {
|
||
|
|
public:
|
||
|
|
gRPCTouchServiceImpl();
|
||
|
|
~gRPCTouchServiceImpl() = default;
|
||
|
|
grpc::Status touch(grpc::ServerContext *context, const cmvr::api::Touch_Request *request, cmvr::api::Touch_Response *response) override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
device::DeviceManager& dmgr_;
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|