make it more clear that detach does not necessarily imply cancellation of the parent
This commit is contained in:
1 parent
42fd7b3f40
commit
002c051c06
2 files changed
+3
-4
No files matched your search
@@ -415,11 +415,11 @@ void BookAlgo::paydown(const md::PriceSize& opposite, uint32_t cross_ticks)
|
||||
report_state();
|
||||
}
|
||||
|
||||
void BookAlgo::detach()
|
||||
void BookAlgo::detach(bts::api::orderman::OrderStatus status_after_detach)
|
||||
{
|
||||
me->fake_detached_child = true;
|
||||
me->child.crack();
|
||||
transition(ORDER_STATUS_CANCELED);
|
||||
transition(status_after_detach);
|
||||
report_state();
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@ protected:
|
||||
|
||||
virtual void payup(const md::PriceSize&, uint32_t cross_ticks = 0);
|
||||
virtual void paydown(const md::PriceSize&, uint32_t cross_ticks = 0);
|
||||
void detach();
|
||||
|
||||
void detach(bts::api::orderman::OrderStatus status_after_detach = bts::api::orderman::ORDER_STATUS_CANCELED);
|
||||
private:
|
||||
struct PImpl;
|
||||
std::unique_ptr<PImpl> me;
|
||||
|
||||
Reference in new issue
Block a user