mavtables
0.2.1
MAVLink router and firewall.
|
#include <common.hpp>
Public Member Functions | |
MockCOut () | |
~MockCOut () | |
std::string | buffer () |
void | reset () |
RAII class to replace std::cout with a mocked buffer.
Definition at line 55 of file common.hpp.
|
inline |
Replace std::cout with this mock.
Definition at line 60 of file common.hpp.
|
inline |
Restore std::cout.
Definition at line 67 of file common.hpp.
|
inline |
Return the contents of the mocked std::cout buffer as a string.
Definition at line 75 of file common.hpp.
|
inline |
Erase the mocked buffer.
Definition at line 81 of file common.hpp.