F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Console.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/Console.hpp
3 // \brief stub implementation for Os::Console, header and test definitions
4 // ======================================================================
5 #include <cstdio>
6 #include <Os/Console.hpp>
7 #ifndef OS_Stub_Console_HPP
8 #define OS_Stub_Console_HPP
9 
10 namespace Os {
11 namespace Stub {
12 namespace Console {
13 
17 };
18 
23 class StubConsole : public ConsoleInterface {
24  public:
27  StubConsole() = default;
28 
30  StubConsole(const StubConsole& other) = default;
31 
33  StubConsole& operator=(const StubConsole& other) = default;
34 
37  ~StubConsole() override = default;
38 
39  // ------------------------------------
40  // Functions overrides
41  // ------------------------------------
42 
50  void writeMessage(const CHAR *message, const FwSizeType size) override;
51 
59  ConsoleHandle *getHandle() override;
60  private:
62  StubConsoleHandle m_handle;
63 };
64 } // namespace Console
65 } // namespace Stub
66 } // namespace Os
67 
68 #endif // OS_Stub_Console_HPP
char CHAR
Definition: BasicTypes.h:32
PlatformSizeType FwSizeType
Definition: FpConfig.h:35
stub implementation of Os::ConsoleInterface
Definition: Console.hpp:23
void writeMessage(const CHAR *message, const FwSizeType size) override
write message to console
Definition: Console.cpp:12
StubConsole & operator=(const StubConsole &other)=default
default copy assignment
StubConsole(const StubConsole &other)=default
copy constructor
~StubConsole() override=default
destructor
StubConsole()=default
constructor
ConsoleHandle * getHandle() override
returns the raw console handle
Definition: Console.cpp:15
Base class for storing implementation specific handle information.
Definition: Console.hpp:15