cleanup: Move a few types from orderman_utils to their own headers
So they can be included without depending on OrderService.pb.h
This commit is contained in:
1 parent
8aa0f1b674
commit
ba525372bb
4 files changed
+37
-4
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "lib/utils/ValueWrapper.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace bts::orderman {
|
||||
|
||||
using AccountID = utils::ValueWrapper<struct AccountIDTag, std::uint32_t>;
|
||||
|
||||
} // namespace bts::orderman
|
||||
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "lib/utils/ValueWrapper.h"
|
||||
|
||||
#include <array>
|
||||
|
||||
namespace bts::orderman {
|
||||
|
||||
using AccountName =
|
||||
utils::ValueWrapper<struct AccountNameTag, std::array<char, 12>>;
|
||||
|
||||
} // namespace bts::orderman
|
||||
@@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "lib/utils/ValueWrapper.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace bts::orderman {
|
||||
|
||||
using OrderKey = utils::ValueWrapper<struct OrderKeyTag, std::uint32_t>;
|
||||
|
||||
} // namespace bts::orderman
|
||||
@@ -10,6 +10,9 @@
|
||||
#include "lib/api/services/OrderService.pb.h"
|
||||
#include "lib/core/FMT_IMPL.h"
|
||||
#include "lib/domain_model/common.h"
|
||||
#include "lib/orderman/account_id.h"
|
||||
#include "lib/orderman/account_name.h"
|
||||
#include "lib/orderman/order_key.h"
|
||||
#include "lib/utils/ValueWrapper.h"
|
||||
#include "lib/utils/bts_assert.h"
|
||||
#include "lib/utils/bts_chrono.h"
|
||||
@@ -21,13 +24,9 @@ class Security;
|
||||
}
|
||||
namespace orderman {
|
||||
using SecurityPtr = const api::Security *;
|
||||
using AccountID = utils::ValueWrapper<struct AccountIDTag, uint32_t>;
|
||||
using UserID = utils::ValueWrapper<struct UserIDTag, uint32_t>;
|
||||
using OrderKey = utils::ValueWrapper<struct OrderKeyTag, uint32_t>;
|
||||
using OperatorID =
|
||||
utils::ValueWrapper<struct OperatorIDTag, std::array<char, 20>>;
|
||||
using AccountName =
|
||||
utils::ValueWrapper<struct AccountNameTag, std::array<char, 12>>;
|
||||
using GatewayName = utils::ValueWrapper<struct GatewayNameTag, std::string>;
|
||||
using ExchangeFillID =
|
||||
utils::ValueWrapper<struct ExchangeFillIDTag, std::array<char, 40>>;
|
||||
|
||||
Reference in new issue
Block a user