![]()  | 
  
    F´ Flight Software - C/C++ Documentation
    devel
    
   A framework for building embedded system applications to NASA flight quality standards. 
   | 
 
#include <Os/Console.hpp>
  
Public Member Functions | |
| ConsoleInterface ()=default | |
| Default constructor.  More... | |
| virtual | ~ConsoleInterface ()=default | 
| Default destructor.  More... | |
| virtual void | writeMessage (const CHAR *message, const FwSizeType size)=0 | 
| write message to console  More... | |
| virtual ConsoleHandle * | getHandle ()=0 | 
| returns the raw console handle  More... | |
Static Public Member Functions | |
| static ConsoleInterface * | getDelegate (ConsoleHandleStorage &aligned_placement_new_memory, const ConsoleInterface *to_copy=nullptr) | 
| provide a pointer to a console delegate object  More... | |
Definition at line 19 of file Console.hpp.
      
  | 
  default | 
Default constructor.
      
  | 
  virtualdefault | 
Default destructor.
      
  | 
  static | 
provide a pointer to a console delegate object
This function must return a pointer to a ConsoleInterface object that contains the real implementation of the console functions as defined by the implementor. This function must do several things to be considered correctly implemented:
static_assert(sizeof(PosixFileImplementation) <= sizeof Os::File::m_handle_storage, "FW_HANDLE_MAX_SIZE too small");static_assert((FW_HANDLE_ALIGNMENT % alignof(PosixFileImplementation)) == 0, "Bad handle alignment");aligned_placement_new_memory e.g. FileInterface* interface = new (aligned_placement_new_memory) PosixFileImplementation;aligned_placement_new_memory e.g. FileInterface* interface = new (aligned_placement_new_memory) PosixFileImplementation(*to_copy);return interface;aligned_placement_new_memory Definition at line 10 of file DefaultConsole.cpp.
      
  | 
  pure virtual | 
returns the raw console handle
Gets the raw console handle from the implementation. Note: users must include the implementation specific header to make any real use of this handle. Otherwise it will be as an opaque type.
Implemented in Os::Stub::Console::StubConsole, Os::Posix::Console::PosixConsole, and Os::Console.
      
  | 
  pure virtual | 
write message to console
Write a message to the console with a bounded size.
| message | raw message to write | 
| size | size of the message to write to the console | 
Implemented in Os::Stub::Console::StubConsole, Os::Posix::Console::PosixConsole, and Os::Console.