12 FW_ASSERT(&this->m_delegate == reinterpret_cast<ConsoleInterface*>(&this->m_handle_storage[0]));
18 m_delegate(*
Console::getDelegate(m_handle_storage, &other.m_delegate)) {
19 FW_ASSERT(&this->m_delegate == reinterpret_cast<Console*>(&this->m_handle_storage[0]));
23 FW_ASSERT(&this->m_delegate == reinterpret_cast<Console*>(&this->m_handle_storage[0]));
31 FW_ASSERT(&this->m_delegate == reinterpret_cast<ConsoleInterface*>(&this->m_handle_storage));
32 FW_ASSERT(message !=
nullptr || size == 0);
41 FW_ASSERT(&this->m_delegate == reinterpret_cast<ConsoleInterface*>(&this->m_handle_storage));
static Console & getSingleton()
get a reference to singleton
static void write(const Fw::StringBase &message)
write message to console
PlatformSizeType FwSizeType
virtual ~ConsoleInterface()=default
Default destructor.
virtual void writeMessage(const CHAR *message, const FwSizeType size)=0
write message to console
static ConsoleInterface * getDelegate(ConsoleHandleStorage &aligned_placement_new_memory, const ConsoleInterface *to_copy=nullptr)
provide a pointer to a console delegate object
static void registerLogger(Logger *logger)
register a logger implementation
virtual ConsoleHandle * getHandle()=0
returns the raw console handle
SizeType length() const
Get length of string.
Base class for storing implementation specific handle information.
~Console()
Default destructor.
ConsoleHandle * getHandle() override
returns the raw console handle
Console & operator=(const Console &other)
assignment operator that copies the internal representation
Console()
Default constructor.
virtual const CHAR * toChar() const =0
void writeMessage(const CHAR *message, const FwSizeType size) override
write message to console
static void init()
initialize singleton