refactor: Rename TestObserver -> TestAlgo
This commit is contained in:
1 parent
ba53334a7c
commit
ce68617d86
4 files changed
+31
-31
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#include "TestAlgo.h"
|
||||
|
||||
namespace bts::spartan::mdp3 {
|
||||
|
||||
struct TestAlgo::PImpl {};
|
||||
|
||||
TestAlgo::TestAlgo() : _me(new TestAlgo::PImpl()) {}
|
||||
|
||||
TestAlgo::~TestAlgo() {}
|
||||
|
||||
void TestAlgo::init(ISim &, protos::SimRunOptions const &) {}
|
||||
|
||||
void TestAlgo::finit() {}
|
||||
|
||||
void TestAlgo::on_replay_start(
|
||||
EventHeader const &, std::vector<SimBookUpdate> const &) {}
|
||||
|
||||
void TestAlgo::on_order_update(
|
||||
EventHeader const &, SimOrderUpdate const &) {}
|
||||
|
||||
void TestAlgo::on_mbp(EventHeader const &, SimBookUpdate const &) {}
|
||||
|
||||
void TestAlgo::on_time() {}
|
||||
|
||||
} // namespace bts::spartan::mdp3
|
||||
+3
-3
@@ -9,10 +9,10 @@ namespace bts::spartan::mdp3 {
|
||||
* An empty implementation of IAlgoModel that serves as a placeholder for
|
||||
* experimental/test code.
|
||||
*/
|
||||
class TestObserver : public IAlgoModel {
|
||||
class TestAlgo : public IAlgoModel {
|
||||
public:
|
||||
TestObserver();
|
||||
~TestObserver();
|
||||
TestAlgo();
|
||||
~TestAlgo();
|
||||
|
||||
void init(ISim &, protos::SimRunOptions const &) override;
|
||||
void finit() override;
|
||||
@@ -1,25 +0,0 @@
|
||||
#include "TestObserver.h"
|
||||
|
||||
namespace bts::spartan::mdp3 {
|
||||
|
||||
struct TestObserver::PImpl {};
|
||||
|
||||
TestObserver::TestObserver() : _me(new TestObserver::PImpl()) {}
|
||||
|
||||
TestObserver::~TestObserver() {}
|
||||
|
||||
void TestObserver::init(ISim &, protos::SimRunOptions const &) {}
|
||||
|
||||
void TestObserver::finit() {}
|
||||
|
||||
void TestObserver::on_replay_start(
|
||||
EventHeader const &, std::vector<SimBookUpdate> const &) {}
|
||||
|
||||
void TestObserver::on_order_update(
|
||||
EventHeader const &, SimOrderUpdate const &) {}
|
||||
|
||||
void TestObserver::on_mbp(EventHeader const &, SimBookUpdate const &) {}
|
||||
|
||||
void TestObserver::on_time() {}
|
||||
|
||||
} // namespace bts::spartan::mdp3
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "run_sim.h"
|
||||
#include "back_testing/algos/PolyObserver.h"
|
||||
#include "back_testing/algos/SniperModel.h"
|
||||
#include "back_testing/algos/TestObserver.h"
|
||||
#include "back_testing/algos/TestAlgo.h"
|
||||
#include "back_testing/sim/SimDB.h"
|
||||
#include "back_testing/sim/Sim.h"
|
||||
#include "back_testing/sim/PCapEventSource.h"
|
||||
@@ -202,8 +202,8 @@ void run_sim(
|
||||
algo.reset(new SniperModel());
|
||||
else if (raw_options.algo() == "PolyObserver")
|
||||
algo.reset(new PolyObserver());
|
||||
else if (raw_options.algo() == "TestObserver")
|
||||
algo.reset(new TestObserver());
|
||||
else if (raw_options.algo() == "TestAlgo")
|
||||
algo.reset(new TestAlgo());
|
||||
else
|
||||
bts_assert(false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user