96 lines
2.2 KiB
C++
96 lines
2.2 KiB
C++
#include "FixRouter.h"
|
|
|
|
#include "IFixSession.h"
|
|
|
|
#include <quickfix/FileStore.h>
|
|
#include <quickfix/SocketAcceptor.h>
|
|
#include <quickfix/SessionSettings.h>
|
|
#include <quickfix/FileLog.h>
|
|
#include <quickfix/Message.h>
|
|
#include <quickfix/SessionID.h>
|
|
|
|
#include <boost/algorithm/string/replace.hpp>
|
|
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <memory>
|
|
|
|
namespace bts
|
|
{
|
|
namespace fix
|
|
{
|
|
|
|
GCC_DIAG_OFF("-Wdeprecated")
|
|
GCC_DIAG_OFF("-Wignored-qualifiers")
|
|
|
|
FixRouter::FixRouter(const md::MDClient& md,
|
|
std::function< std::shared_ptr<IFixSession> (IFixRouter&, const FIX::SessionID&) > factory) :
|
|
_sessions(),
|
|
_index(md),
|
|
_sc(sc),
|
|
_lock()
|
|
{
|
|
}
|
|
|
|
FixRouter::~FixRouter()
|
|
{
|
|
}
|
|
|
|
void FixRouter::send(const FIX::Message&, const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void FixRouter::send_session_reject(const FIX::SessionID& sess, const std::string& text, const FIX::Message* refmessage)
|
|
{
|
|
}
|
|
|
|
void FixRouter::send_biz_reject(const FIX::SessionID sess, const std::string& text, const FIX::Message& refmessage, int reason_code)
|
|
{
|
|
}
|
|
|
|
void FixRouter::fromAdmin(const FIX::Message& message, const FIX::SessionID& sessionID)
|
|
throw(FIX::FieldNotFound, FIX::IncorrectDataFormat, FIX::IncorrectTagValue, FIX::RejectLogon)
|
|
{
|
|
}
|
|
|
|
void FixRouter::fromApp(const FIX::Message &message,const FIX::SessionID &sessionID)
|
|
throw(FIX::FieldNotFound, FIX::IncorrectDataFormat, FIX::IncorrectTagValue, FIX::UnsupportedMessageType)
|
|
{
|
|
}
|
|
|
|
void FixRouter::onCreate(const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void FixRouter::onLogon(const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void onLogout(const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void FixRouter::toAdmin(FIX::Message&, const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void FixRouter::toApp(FIX::Message&, const FIX::SessionID&) throw(FIX::DoNotSend)
|
|
{
|
|
}
|
|
|
|
IFixSession& FixRouter::session(const FIX::SessionID&)
|
|
{
|
|
}
|
|
|
|
void FixRouter::handle_session_exception(const std::exception& ex, const FIX::SessionID& sessionID, const FIX::Message* message)
|
|
{
|
|
}
|
|
|
|
void FixRouter::handle_field_not_found(const FIX::FieldNotFound& ex, const FIX::SessionID& sess, const FIX::Message& message)
|
|
{
|
|
}
|
|
|
|
|
|
}
|
|
} |