23 constexpr std::array<std::string_view,
48 throw std::invalid_argument(
"Unknown command type name");
A command to cancel an existing order in the trading engine.
Definition CancelOrder.h:18
A command to modify an existing order in the trading engine.
Definition ModifyOrder.h:20
A command to submit a new order to the trading engine.
Definition NewOrder.h:19
Definition CancelOrder.h:10
std::string to_string(CommandType type)
Converts a CommandType enum to its string representation.
Definition CommandType.h:32
constexpr std::array< std::string_view, static_cast< size_t >(CommandType::COUNT)> command_type_names
An array of string representations for the CommandType enum.
Definition CommandType.h:25
CommandType
Represents the different types of commands that can be processed by the trading engine.
Definition CommandType.h:13
@ COUNT
Helper to get the number of command types.
CommandType from_string(std::string_view name)
Converts a string to its corresponding CommandType enum.
Definition CommandType.h:43