Skip to content

Commit

Permalink
Remove unnecessary includes of order.h. Add a placeholder main.cpp to…
Browse files Browse the repository at this point in the history
… keep MPC/Visual Studio happy.
  • Loading branch information
Dale Wilson committed Feb 21, 2017
1 parent 1bd0d00 commit 492c842
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/book/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the file license.txt for licensing information.
#pragma once

#include "order.h"
#include "types.h"

namespace liquibook { namespace book {
Expand Down
10 changes: 10 additions & 0 deletions src/book/liquibook.mpc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project (liquibook): liquibook_exe {
exename = *
Header_files {
*.h
}
Source_Files {
*.cpp
}
}

26 changes: 26 additions & 0 deletions src/book/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <iostream>
#include "version.h"

#include "depth_order_book.h"
#include "order.h"

using namespace liquibook;
using namespace book;
namespace
{
// depth order book pulls in all the other header files.
// except order.h which is actually a concept.
DepthOrderBook<Order *, 5> unusedDepthOrderBook_;
}

int main(int, const char**)
{
std::cout << "Liquibook version " << Version::MAJOR << '.' << Version::MINOR << '.' << Version::PATCH
<< " (" << Version::RELEASE_DATE << ")\n";
std::cout << "Liquibook is a header-only library.\n\n";
std::cout << "This executable is a placeholder to make the book header files visible in\n";
std::cout << "Visual Studio. It also forces the compiler to do syntax checking of the header\n";
std::cout << "files at build time." << std::endl;
return 0;
}

1 change: 1 addition & 0 deletions src/book/order_book.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// All rights reserved.
// See the file license.txt for licensing information.
#pragma once

#include "version.h"
#include "order_tracker.h"
#include "callback.h"
Expand Down
2 changes: 0 additions & 2 deletions src/book/order_listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// See the file license.txt for licensing information.
#pragma once

#include "order.h"

namespace liquibook { namespace book {

/// @brief generic listener of order events. Implement to build a full order book feed.
Expand Down
1 change: 0 additions & 1 deletion src/book/order_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#pragma once

#include "types.h"
#include "order.h"

namespace liquibook { namespace book {

Expand Down

0 comments on commit 492c842

Please sign in to comment.