F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ConsoleInterface.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Interfaces/ConsoleInterface.hpp
3 // \brief pure-virtual interface implemented by Os::Console implementations
4 // ======================================================================
5 #ifndef OS_INTERFACES_CONSOLEINTERFACE_HPP_
6 #define OS_INTERFACES_CONSOLEINTERFACE_HPP_
7 
9 
10 namespace Os {
11 
12 // \brief Interface defining the properties of the console
14  public:
16  ConsoleInterface() = default;
17 
19  virtual ~ConsoleInterface() = default;
20 
27  virtual void writeMessage(const CHAR* message, const FwSizeType size) = 0;
28 
36  virtual ConsoleHandle* getHandle() = 0;
37 };
38 
39 } // namespace Os
40 
41 #endif // OS_INTERFACES_CONSOLEINTERFACE_HPP_
PlatformSizeType FwSizeType
virtual ~ConsoleInterface()=default
Default destructor.
virtual void writeMessage(const CHAR *message, const FwSizeType size)=0
write message to console
char CHAR
Definition: BasicTypes.h:60
virtual ConsoleHandle * getHandle()=0
returns the raw console handle
ConsoleInterface()=default
Default constructor.
Base class for storing implementation specific handle information.
types and constants shared by users of Os::Console and by its implementations