libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
types.hpp File Reference
#include "core/enum_as_char_array.hpp"
#include "core/int128_compatibility.hpp"
#include <array>
#include <iterator>
#include <iostream>
#include <limits>
Include dependency graph for types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  isimud
 
namespace  isimud::ISIMUD_VER_NAMESPACE
 
namespace  isimud::ISIMUD_VER_NAMESPACE::exchanges
 
namespace  isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX
 
namespace  isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common
 

Macros

#define JMMCG_FIX_MSG_BODY_LENGTH_NULL   "000"
 When creating a FIX message it will always have this many chars. All this variable-sized stuff is a crock. More...
 
#define JMMCG_FIX_MSG_BODY_LENGTH_TAG   "\0019="
 
#define JMMCG_FIX_MSG_TYPE_TAG   "\00135="
 

Typedefs

using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::element_type = char
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::underlying_fix_data_buffer = std::array< element_type, max_size_of_fix_message >
 An underlying data-buffer into which the fix message may be created. More...
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::pointer = element_type *
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::const_pointer = element_type const *
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::data_block_t = pointer
 The type of the internal data-buffer. More...
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::SecurityID_t = std::array< char, 20 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::ClientOrderID_t = std::array< char, 20 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::Reason_t = std::array< char, 20 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::Password_t = std::array< char, 25 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::UserName_t = std::array< char, 25 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::Price_str_t = std::array< char, 25 >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::checksum_t = std::array< char, CheckSumLength+1 >
 The checksum type used by FIX. More...
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::field_str_const_range_t = std::pair< const_pointer, const_pointer >
 
using isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::field_str_range_t = std::pair< pointer, pointer >
 

Enumerations

enum  : std::size_t { isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::max_size_of_fix_message =sizeof(libjmmcg::uint128_t)*32 }
 

Functions

 isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::BOOST_MPL_ASSERT_RELATION ((libjmmcg::enum_tags::mpl::to_array< FieldsFast, FieldsFast::BodyLength >::size),==, sizeof(JMMCG_FIX_MSG_BODY_LENGTH_TAG) -1)
 
 isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::BOOST_MPL_ASSERT_RELATION ((libjmmcg::enum_tags::mpl::to_array< FieldsFast, FieldsFast::MsgType >::size), >=, sizeof(JMMCG_FIX_MSG_TYPE_TAG) -1)
 
std::ostream & std::operator<< (std::ostream &os, isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::field_str_const_range_t const &v)
 

Variables

constexpr const char isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::Separator ='\001'
 
constexpr const unsigned short isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::CheckSumLength =3
 
constexpr const std::uint64_t isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::implied_decimal_places =1
 

Macro Definition Documentation

◆ JMMCG_FIX_MSG_BODY_LENGTH_NULL

#define JMMCG_FIX_MSG_BODY_LENGTH_NULL   "000"

When creating a FIX message it will always have this many chars. All this variable-sized stuff is a crock.

Definition at line 68 of file types.hpp.

◆ JMMCG_FIX_MSG_BODY_LENGTH_TAG

#define JMMCG_FIX_MSG_BODY_LENGTH_TAG   "\0019="

Definition at line 70 of file types.hpp.

◆ JMMCG_FIX_MSG_TYPE_TAG

#define JMMCG_FIX_MSG_TYPE_TAG   "\00135="

Definition at line 71 of file types.hpp.

Function Documentation

◆ operator<<()

std::ostream& std::operator<< ( std::ostream &  os,
isimud::ISIMUD_VER_NAMESPACE::exchanges::FIX::common::field_str_const_range_t const &  v 
)
inline

Definition at line 80 of file types.hpp.