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-03 07:33:16 -05:00
|
|
|
#include "AppInfo.grpc.pb.h"
|
2019-05-20 06:21:02 -05:00
|
|
|
|
|
|
|
#include <grpcpp/grpcpp.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace rips
|
|
|
|
{
|
|
|
|
class Empty;
|
|
|
|
class Version;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace caf
|
|
|
|
{
|
|
|
|
class PdmValueField;
|
|
|
|
}
|
|
|
|
|
2019-05-27 00:29:20 -05:00
|
|
|
class RiaGrpcCallbackInterface;
|
2019-05-20 06:21:02 -05:00
|
|
|
|
2019-06-03 07:33:16 -05:00
|
|
|
class RiaGrpcAppInfoService : public rips::AppInfo::AsyncService, public RiaGrpcServiceInterface
|
2019-05-20 06:21:02 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
grpc::Status GetVersion(grpc::ServerContext* context, const rips::Empty* request, rips::Version* reply) override;
|
2019-05-27 00:29:20 -05:00
|
|
|
std::vector<RiaGrpcCallbackInterface*> createCallbacks() override;
|
2019-05-20 06:21:02 -05:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|