Files
spark/src/lib/api/public/ServerChannel.h
T

28 lines
704 B
C++

#pragma once
#include "../core/ApiClientInterop.h"
#include "../core/ApiServerInterop.h"
#include "lib/api/apicore.pb.h"
namespace bts {
namespace api {
class ApiServer;
class ServerChannel
{
public:
ServerChannel(Quickbus& qbus, const std::string& service_type, const std::string& qualifier, ApiServer& server);
ServerChannel(ServerChannel&& other);// : _me(std::move(other._me)) {}
~ServerChannel();
TableHandle create_table(const char* method, const char* qualifier) const;
void publish(TableHandle table, StreamUpdate* changes, int change_count) const;
private:
struct ServerChannelImpl;
std::unique_ptr<ServerChannelImpl> _me;
};
}}//namespace