-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfanout.cpp
45 lines (35 loc) · 905 Bytes
/
fanout.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "fanout.h"
#include <boost/algorithm/string/case_conv.hpp>
#include <iostream>
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <thread>
#include <chrono>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
// #include <czmq.h>
#include <zmq.hpp>
#include "lob.h"
// LobRecordFanout::LobRecordFanout(const LobRecordFanout::Settings& settings)
// {
// config_ = settings;
// }
bool LobRecordFanout::init(const QJsonObject& settings){
return false;
}
bool LobRecordFanout::start() {
return false;
}
void LobRecordFanout::stop() {
stopped_.store(true);
thread_.join();
}
void LobRecordFanout::fanout( lob_px_record_t::Ptr & record){
queue_.enqueue(record);
}