Files
spark/src/lib/jetfix/store/FIXFileStore.h
T
Pedro Pinto d5fc0c5a56 Skipped lines that do no match a FIX prefix in FIX logs.
This is needed at the ICE where some messages can have new lines. We
use the new line separator to separate FIX messages so the parser was
getting confused when it saw multi-line messages.
2019-12-18 17:16:12 -05:00

35 lines
873 B
C++

#pragma once
#include <memory>
#include "lib/jetfix/store/IFIXStore.h"
#include "lib/config/protos/jetfix.pb.h"
namespace bts {
namespace jetfix {
class FIXFileStore : public IFIXStore
{
public:
FIXFileStore(config::JetFIX::Connection const&cfg,std::string base_path="");
~FIXFileStore();
bool session_active () const override;
std::vector<InMsgBuffer> replay () const override;
uint32_t last_seq_num () const override;
uint32_t last_seq_num_processed () const override;
void store (InMsgBuffer const&buffer) override;
void store (OutFIXPtr const&msgs) override;
void set_last_msg_processed (uint32_t last_msg_processed) override;
void set_last_seq_num(uint32_t last_seq_num) override;
private:
struct PImpl;
struct Event;
void write ();
std::unique_ptr<PImpl> me;
};
bool is_valid_store_line(std::string const&) ;
}}