fastinahurry/include/Publisher.hh
2025-07-27 21:47:49 -06:00

14 lines
307 B
C++

#pragma once
#include "trading.grpc.pb.h"
#include <grpcpp/grpcpp.h>
#include <memory>
class Publisher {
public:
explicit Publisher(std::shared_ptr<grpc::Channel> channel);
grpc::Status send_order(const trading::Order& order);
private:
std::unique_ptr<trading::TradingService::Stub> _stub;
};