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]));
32 FW_ASSERT(message !=
nullptr || size == 0);
PlatformSizeType FwSizeType
static void registerLogger(Logger *logger)
register a logger implementation
virtual const CHAR * toChar() const =0
SizeType length() const
Get length of string.
Console & operator=(const Console &other)
assignment operator that copies the internal representation
static void write(const Fw::StringBase &message)
write message to console
Console()
Default constructor.
~Console()
Default destructor.
void writeMessage(const CHAR *message, const FwSizeType size) override
write message to console
ConsoleHandle * getHandle() override
returns the raw console handle
static void init()
initialize singleton
static Console & getSingleton()
get a reference to singleton
virtual ~ConsoleInterface()=default
Default destructor.
virtual ConsoleHandle * getHandle()=0
returns the raw console handle
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
Base class for storing implementation specific handle information.