#include "SecurityLimitNode.h" namespace bts { namespace orderman { SecurityLimitNode::SecurityLimitNode( uint32_t account_id, ProductLimitNode& product_node, uint32_t prod_clip_size, const bts::api::admin::SecurityRiskLimitUnit& sec_limit) : _account_id(account_id), _prod_clip_size(prod_clip_size), _product_node(product_node), _sec_limit(sec_limit), _long_pos(0), _long_working_pos(0), _short_pos(0), _short_working_pos(0), _is_child(false), // all nodes are parents with no child by default _relation(nullptr) {} void SecurityLimitNode::set_parent_child(bool is_child, SecurityLimitNode* relation){ _is_child = is_child; _relation = relation; } } // namespace orderman } // namespace bts