From 9f3f86fe4e754d4e3507a2b09b506e81862251cb Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 18 Feb 2013 12:06:18 -0800 Subject: [PATCH] Extra constructor. --- src/cpp/ripple/OrderBook.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpp/ripple/OrderBook.h b/src/cpp/ripple/OrderBook.h index fa3c0f669..48395f8b5 100644 --- a/src/cpp/ripple/OrderBook.h +++ b/src/cpp/ripple/OrderBook.h @@ -21,10 +21,14 @@ class OrderBook //SerializedLedgerEntry::pointer mLedgerEntry; OrderBook(SerializedLedgerEntry::ref ledgerEntry); // For accounts in a ledger + public: typedef boost::shared_ptr pointer; typedef const boost::shared_ptr& ref; + OrderBook(const uint256& index, const uint160& ci, const uint160& co, const uint160& ii, const uint160& io) : + mBookBase(index), mCurrencyIn(ci), mCurrencyOut(co), mIssuerIn(ii), mIssuerOut(io) { ; } + // returns NULL if ledgerEntry doesn't point to an order // if ledgerEntry is an Order it creates the OrderBook this order would live in static OrderBook::pointer newOrderBook(SerializedLedgerEntry::ref ledgerEntry);