22 lines
550 B
C++
22 lines
550 B
C++
// Copyright (2019-2023) Paul Scherrer Institute
|
|
|
|
#ifndef JUNGFRAUJOCH_JFJOCHWRITERCLIENT_H
|
|
#define JUNGFRAUJOCH_JFJOCHWRITERCLIENT_H
|
|
|
|
#include <string>
|
|
#include <jfjoch.grpc.pb.h>
|
|
|
|
#include "../common/DiffractionExperiment.h"
|
|
|
|
class JFJochWriterClient {
|
|
std::unique_ptr<JFJochProtoBuf::gRPC_JFJochWriter::Stub> _stub;
|
|
public:
|
|
void Connect(const std::string &addr);
|
|
void Start(const std::string &zmq_push_addr, int64_t series_id);
|
|
JFJochProtoBuf::WriterOutput Stop();
|
|
void Abort();
|
|
};
|
|
|
|
|
|
#endif //JUNGFRAUJOCH_JFJOCHWRITERCLIENT_H
|