Files
spark/src/lib/md/test/Co2TestInstrument.h
T

33 lines
714 B
C++

#pragma once
#include "../coconut2.h"
#include "lib/utils/bts_no_copy.h"
#include <memory>
namespace bts {
namespace md {
struct Co2TestInstrument {
Co2TestInstrument(const std::string &symbol, SecurityType type);
Co2TestInstrument(
const Security &security,
std::shared_ptr<ColdHeader>,
std::shared_ptr<HotHeader>);
~Co2TestInstrument();
MDProducerHandle producer();
MDConsumerHandle consumer();
ColdEntry &cold() { return *_cold; }
private:
std::shared_ptr<uint8_t> _cold_buffer;
ColdEntry *_cold;
std::shared_ptr<HotDepthEntry> _hot;
std::shared_ptr<ColdHeader> _cheader;
std::shared_ptr<HotHeader> _hheader;
};
} // namespace md
} // namespace bts