25#if defined(ONIXS_B3_BOE_HAS_GATEWAY_EMULATOR) 
   36using namespace Messaging;
 
   50template<
typename Message>
 
   60    template <
class AnotherType>
 
   64        , container_(rhs.container_)
 
 
   71    template <
class AnotherType>
 
   75        , container_(std::move(rhs.container_))
 
 
  120        std::swap(rhs.size_, size_);
 
  121        std::swap(rhs.container_, container_);
 
  122        std::swap(rhs.message_, message_);
 
 
  166    operator Message() noexcept
 
 
  172    operator const Message() const noexcept
 
 
  180        return container_.get();
 
 
  188        message_ = Message();
 
 
  194        return message_.toString();
 
 
  199    template <
class AnotherType>
 
  202        if(rhs->templateId() != Message::TemplateId)
 
 
  220    , container_(std::move(container))
 
  221    , message_(container_.get(), size_)
 
  226template <
typename AnotherType, 
typename BaseType>
 
#define ONIXS_B3_BOE_NORETURN
 
#define ONIXS_B3_BOE_EXPORTED
 
const Message & message() const noexcept
 
const Message & operator*() const noexcept
 
MessagePtr(MessagePtr< AnotherType > &&rhs)
Creates from the given type.
 
std::string toString() const
 
const Message * operator->() const noexcept
 
Message & message() noexcept
 
MessagePtr(const MessagePtr &)=default
 
Message * operator->() noexcept
 
MessagePtr()
Creates an empty message container.
 
MessagePtr(const MessagePtr< AnotherType > &rhs)
Create from another type.
 
void swap(MessagePtr &rhs) noexcept
 
bool valid() const noexcept
 
MessagePtr(Container &&, MessageSize)
Creates from the given memory block.
 
MessagePtr & operator=(MessagePtr &&rhs) noexcept
 
MessagePtr & operator=(const MessagePtr &)=default
 
Message & operator*() noexcept
 
std::shared_ptr< UInt8 > Container
 
MessagePtr(MessagePtr &&rhs) noexcept
 
void reset()
Resets the message.
 
Message typify(const SbeMessage &message)
Casts SBE-encoded message to a given type.
 
UInt16 MessageSize
Message length type.
 
bool isMessageValid(const SbeMessage &msg) noexcept
 
void throwWrongType(UInt16, UInt16)
 
MessagePtr< AnotherType > cast(const MessagePtr< BaseType > &ptr)
Tries to cast to another type.