DynExp
Highly flexible laboratory automation for dynamically changing experiments.
HardwareAdaptergRPC.cpp
Go to the documentation of this file.
1 // This file is part of DynExp.
2 
3 #include "stdafx.h"
4 #include "HardwareAdaptergRPC.h"
5 
6 namespace DynExpHardware
7 {
8  gRPCException::gRPCException(const grpc::Status Result, const std::source_location Location) noexcept
9  : Exception((Result.error_code() == grpc::StatusCode::UNIMPLEMENTED && Result.error_message().empty()) ? UNIMPLEMENTED_ErrorMsg : Result.error_message(),
11  Util::NumToT<int>(static_cast<std::underlying_type_t<grpc::StatusCode>>(Result.error_code())),
12  Location)
13  {
14  }
15 }
Implementation of a hardware adapter to communicate over TCP sockets using gRPC.
gRPCException(const grpc::Status Result, const std::source_location Location=std::source_location::current()) noexcept
Constructs a gRPCException instance.
DynExp's hardware namespace contains the implementation of DynExp hardware adapters which extend DynE...
Accumulates include statements to provide a precompiled header.