2019-05-20 06:21:02 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2019- Equinor ASA
|
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RiaGrpcServiceInterface.h"
|
|
|
|
|
2019-06-04 05:59:06 -05:00
|
|
|
#include "App.grpc.pb.h"
|
2019-05-20 06:21:02 -05:00
|
|
|
|
|
|
|
#include <grpcpp/grpcpp.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace rips
|
|
|
|
{
|
|
|
|
class Empty;
|
|
|
|
class Version;
|
2019-09-06 03:40:57 -05:00
|
|
|
} // namespace rips
|
2019-05-20 06:21:02 -05:00
|
|
|
|
|
|
|
namespace caf
|
|
|
|
{
|
|
|
|
class PdmValueField;
|
|
|
|
}
|
|
|
|
|
2019-05-27 00:29:20 -05:00
|
|
|
class RiaGrpcCallbackInterface;
|
2019-05-20 06:21:02 -05:00
|
|
|
|
2019-06-04 05:59:06 -05:00
|
|
|
class RiaGrpcAppService : public rips::App::AsyncService, public RiaGrpcServiceInterface
|
2019-05-20 06:21:02 -05:00
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
grpc::Status GetVersion( grpc::ServerContext* context, const rips::Empty* request, rips::Version* reply ) override;
|
|
|
|
grpc::Status Exit( grpc::ServerContext* context, const rips::Empty* request, rips::Empty* reply ) override;
|
|
|
|
grpc::Status
|
|
|
|
GetRuntimeInfo( grpc::ServerContext* context, const rips::Empty* request, rips::RuntimeInfo* reply ) override;
|
2019-05-27 00:29:20 -05:00
|
|
|
std::vector<RiaGrpcCallbackInterface*> createCallbacks() override;
|
2019-05-20 06:21:02 -05:00
|
|
|
};
|