libjmmcg  build_2414
A C++ library containing an eclectic mix of useful, advanced components.
isimud::exchanges::MIT::common::Header Struct Reference

#include <messages.hpp>

Inheritance diagram for isimud::exchanges::MIT::common::Header:
[legend]

Public Types

enum  : bool { has_static_size =true }
 
using ClientOrderID_t = common::ClientOrderID_t
 
using OrderID_t = common::OrderID_t
 
using MsgTypes_t = common::MsgType_t
 

Public Member Functions

template<class MsgT >
constexpr Header (std::size_t l, MsgT t) noexcept(true) FORCE_INLINE
 
MsgType_t type () const noexcept(true)
 
uint16_t length () const noexcept(true)
 

Public Attributes

enum isimud::exchanges::MIT::common::Header:: { ... }  __attribute__
 
const std::int8_t start_of_message =2
 
const int16_t length_
 
const MsgType_t type_
 

Detailed Description

Section: "8.2 Message header"

Definition at line 55 of file messages.hpp.

Member Typedef Documentation

◆ ClientOrderID_t

◆ MsgTypes_t

◆ OrderID_t

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : bool
Enumerator
has_static_size 

The message is statically-sized, not dynamically, so sizeof(the derived message-type) is the amount to copy, i.e. length() returns sizeof(the derived message-type).

Definition at line 56 of file messages.hpp.

Constructor & Destructor Documentation

◆ Header()

template<class MsgT >
constexpr isimud::exchanges::MIT::common::Header::Header ( std::size_t  l,
MsgT  t 
)
inlinenoexcept

Definition at line 25 of file messages_impl.hpp.

References Header().

Referenced by Header().

Member Function Documentation

◆ length()

uint16_t isimud::exchanges::MIT::common::Header::length ( ) const
inlinenoexcept

Definition at line 73 of file messages.hpp.

References length_.

◆ type()

MsgType_t isimud::exchanges::MIT::common::Header::type ( ) const
inlinenoexcept

Definition at line 70 of file messages.hpp.

Member Data Documentation

◆ __attribute__

enum { ... } isimud::exchanges::MIT::common::Header::__attribute__

◆ length_

const int16_t isimud::exchanges::MIT::common::Header::length_

Definition at line 64 of file messages.hpp.

Referenced by length().

◆ start_of_message

const std::int8_t isimud::exchanges::MIT::common::Header::start_of_message =2

Definition at line 63 of file messages.hpp.

◆ type_

const MsgType_t isimud::exchanges::MIT::common::Header::type_

Definition at line 65 of file messages.hpp.


The documentation for this struct was generated from the following files: