# My Project: include/Publisher.hh Source File

Loading...
Searching...
No Matches
Publisher.hh
Go to the documentation of this file.
#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;
};
Publisher::send_order
grpc::Status send_order(const trading::Order &order)
Definition Publisher.cc:8
Publisher::_stub
std::unique_ptr< trading::TradingService::Stub > _stub
Definition Publisher.hh:13
Publisher::Publisher
Publisher(std::shared_ptr< grpc::Channel > channel)
Definition Publisher.cc:5