summaryrefslogtreecommitdiff
path: root/graphics/asymptote/LspCpp/include/LibLsp/JsonRpc/MessageProducer.h
blob: 2affe3b3ff2bcaff1c91ec5a3b7fa64fead3c165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <string>
#include <functional>

class MessageProducer
{
public:


        typedef  std::function< void(std::string&&) >  MessageConsumer;
        virtual  ~MessageProducer() = default;
        virtual void listen(MessageConsumer) = 0;
};