Electroneum
hw::trezor::GenericMessage Class Reference

#include <transport.hpp>

Public Member Functions

 GenericMessage ()
 
 GenericMessage (messages::MessageType m_type, const std::shared_ptr< google::protobuf::Message > &m_msg)
 
bool empty () const
 

Public Attributes

hw::trezor::messages::MessageType m_type
 
std::shared_ptr< google::protobuf::Message > m_msg
 
bool m_empty
 

Detailed Description

Generic message holder, type + obj

Definition at line 354 of file transport.hpp.

Constructor & Destructor Documentation

◆ GenericMessage() [1/2]

hw::trezor::GenericMessage::GenericMessage ( )
inline

Definition at line 356 of file transport.hpp.

356 : m_empty(true) {}

◆ GenericMessage() [2/2]

hw::trezor::GenericMessage::GenericMessage ( messages::MessageType  m_type,
const std::shared_ptr< google::protobuf::Message > &  m_msg 
)

Member Function Documentation

◆ empty()

bool hw::trezor::GenericMessage::empty ( void  ) const
inline

Definition at line 358 of file transport.hpp.

358 { return m_empty; }

Member Data Documentation

◆ m_empty

bool hw::trezor::GenericMessage::m_empty

Definition at line 362 of file transport.hpp.

◆ m_msg

std::shared_ptr<google::protobuf::Message> hw::trezor::GenericMessage::m_msg

Definition at line 361 of file transport.hpp.

◆ m_type

hw::trezor::messages::MessageType hw::trezor::GenericMessage::m_type

Definition at line 360 of file transport.hpp.


The documentation for this class was generated from the following file: