CppTrader  1.0.4.0
C++ Trader
update.inl
Go to the documentation of this file.
1 
9 namespace CppTrader {
10 namespace Matching {
11 
12 template <class TOutputStream>
13 inline TOutputStream& operator<<(TOutputStream& stream, UpdateType type)
14 {
15  switch (type)
16  {
17  case UpdateType::NONE:
18  stream << "NONE";
19  break;
20  case UpdateType::ADD:
21  stream << "ADD";
22  break;
23  case UpdateType::UPDATE:
24  stream << "UPDATE";
25  break;
26  case UpdateType::DELETE:
27  stream << "DELETE";
28  break;
29  default:
30  stream << "<unknown>";
31  break;
32  }
33  return stream;
34 }
35 
36 } // namespace Matching
37 } // namespace CppTrader
TOutputStream & operator<<(TOutputStream &stream, ErrorCode error)
Definition: errors.inl:13
UpdateType
Update type.
Definition: update.h:21
C++ Trader project definitions.
Definition: errors.h:16