OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
OrderExecID Class Reference

Public Types

enum  
typedef Int64 SystemID
typedef Int32 SystemSequenceID
typedef UInt64 UTCTimestamp

Public Member Functions

constexpr OrderExecID () noexcept
 OrderExecID (SystemID systemId, SystemSequenceID systemSequenceId, Timestamp transactTime) noexcept(timestampToTicks::Nothrow)
constexpr OrderExecID (SystemID systemId, SystemSequenceID systemSequenceId, UTCTimestamp transactTime) noexcept
std::string toString () const
void serialize (void *addr) const noexcept
SystemID systemId () const noexcept
void systemId (SystemID value) noexcept
SystemSequenceID systemSequenceId () const noexcept
void systemSequenceId (SystemSequenceID value) noexcept
Timestamp transactTime () const noexcept(ticksToTimestamp::Nothrow)
void transactTime (Timestamp value) noexcept(timestampToTicks::Nothrow)
bool operator== (const OrderExecID &other) const noexcept
bool operator!= (const OrderExecID &other) const noexcept

Detailed Description

Definition at line 455 of file Composites.h.

Member Typedef Documentation

◆ SystemID

typedef Int64 SystemID

Type alias for the SystemID.

Definition at line 462 of file Composites.h.

◆ SystemSequenceID

Type alias for the SystemSequenceID.

Definition at line 465 of file Composites.h.

◆ UTCTimestamp

Type alias for the TransactTime.

FIX type: UTCTimestamp.

Definition at line 470 of file Composites.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Size of the composite.

Enumerator
Size 20 

Definition at line 459 of file Composites.h.

459{ Size = 20 };

Constructor & Destructor Documentation

◆ OrderExecID() [1/3]

OrderExecID ( )
inlineconstexprnoexcept

Default constructor.

Initializes fields with zero values.

Definition at line 476 of file Composites.h.

477 : systemId_(0),
478 systemSequenceId_(0),
479 transactTime_(0)
480 {
481 }

◆ OrderExecID() [2/3]

OrderExecID ( SystemID systemId,
SystemSequenceID systemSequenceId,
Timestamp transactTime )
inlinenoexcept

Initializes fields with the provided values.

Definition at line 484 of file Composites.h.

485 : systemId_(systemId),
486 systemSequenceId_(systemSequenceId),
487 transactTime_(convert<timestampToTicks>(transactTime))
488 {
489 }

◆ OrderExecID() [3/3]

OrderExecID ( SystemID systemId,
SystemSequenceID systemSequenceId,
UTCTimestamp transactTime )
inlineconstexprnoexcept

Initializes fields with the provided values.

Definition at line 493 of file Composites.h.

494 : systemId_(systemId),
495 systemSequenceId_(systemSequenceId),
496 transactTime_(transactTime)
497 {
498 }

Member Function Documentation

◆ operator!=()

bool operator!= ( const OrderExecID & other) const
inlinenoexcept

Compares encoded data.

Definition at line 587 of file Composites.h.

588 {
589 return !(*this == other);
590 }

◆ operator==()

bool operator== ( const OrderExecID & other) const
inlinenoexcept

Compares encoded data.

Definition at line 577 of file Composites.h.

578 {
579 return
580 (this->systemId_ == other.systemId_) &&
581 (this->systemSequenceId_ == other.systemSequenceId_) &&
582 (this->transactTime_ == other.transactTime_);
583 }

◆ serialize()

void serialize ( void * addr) const
inlinenoexcept

Serializes to a data buffer.

Definition at line 519 of file Composites.h.

520 {
521 assert(addr);
522
523 std::memcpy(addr, &systemId_, sizeof(systemId_));
524 addr = advanceByBytes(addr, sizeof(systemId_));
525
526 std::memcpy(addr, &systemSequenceId_, sizeof(systemSequenceId_));
527 addr = advanceByBytes(addr, sizeof(systemSequenceId_));
528
529 std::memcpy(addr, &transactTime_, sizeof(transactTime_));
530 }
ONIXS_ICEBOE_FORCEINLINE Type * advanceByBytes(Type *pointer, ptrdiff_t distance) noexcept
Advances the pointer to a given offset (distance) in bytes.
Definition Memory.h:110

◆ systemId() [1/2]

SystemID systemId ( ) const
inlinenoexcept
Returns
the systemID field.

Definition at line 534 of file Composites.h.

535 {
536 return systemId_;
537 }

◆ systemId() [2/2]

void systemId ( SystemID value)
inlinenoexcept

Sets the systemID field.

Definition at line 540 of file Composites.h.

541 {
542 systemId_ = value;
543 }

◆ systemSequenceId() [1/2]

SystemSequenceID systemSequenceId ( ) const
inlinenoexcept
Returns
the systemSequenceID field.

Definition at line 547 of file Composites.h.

548 {
549 return systemSequenceId_;
550 }

◆ systemSequenceId() [2/2]

void systemSequenceId ( SystemSequenceID value)
inlinenoexcept

Sets the systemSequenceID field.

Definition at line 553 of file Composites.h.

554 {
555 systemSequenceId_ = value;
556 }

◆ toString()

std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 1698 of file Serialization.h.

1699{
1700 return toStr(*this);
1701}
std::string toStr(Order::PriceOptional value)
Definition Order.cpp:34

◆ transactTime() [1/2]

Timestamp transactTime ( ) const
inlinenoexcept
Returns
the transactTime field.

FIX type: UTCTimestamp.

Definition at line 562 of file Composites.h.

563 {
564 return convert<ticksToTimestamp>(transactTime_);
565 }

◆ transactTime() [2/2]

void transactTime ( Timestamp value)
inlinenoexcept

Sets the transactTime field.

FIX type: UTCTimestamp.

Definition at line 570 of file Composites.h.

571 {
572 transactTime_ = convert<timestampToTicks>(value);
573 }