ME507 Utility Library
0.2.1
Mechatronics Course Support Software for ARM/Arduino/FreeRTOS
|
#include "devnull.h"
Functions | |
DevNull & | operator<< (DevNull &no, const __FlashStringHelper *s) |
DevNull & | operator<< (DevNull &no, const String &s) |
DevNull & | operator<< (DevNull &no, const char s[]) |
DevNull & | operator<< (DevNull &no, char c) |
DevNull & | operator<< (DevNull &no, unsigned char c) |
DevNull & | operator<< (DevNull &no, int i) |
DevNull & | operator<< (DevNull &no, unsigned int i) |
DevNull & | operator<< (DevNull &no, int8_t i) |
DevNull & | operator<< (DevNull &no, long i) |
DevNull & | operator<< (DevNull &no, unsigned long i) |
DevNull & | operator<< (DevNull &no, double d) |
DevNull & | operator<< (DevNull &no, const Printable &p) |
DevNull & | operator<< (DevNull &no, bool b) |
DevNull & | operator<< (DevNull &no, manipulator pf) |
DevNull & | operator<< (DevNull &no, _Setbase __f) |
DevNull & | operator<< (DevNull &no, _Setprecision __f) |
DevNull & | operator<< (DevNull &no, _Setbytesep __f) |
Variables | |
DevNull | Debug |
Defining this macro causes debugging printouts to be suppressed. More... | |
This file allows debugging printouts to be conveniently turned on and off. It contains a class which doesn't print anything when given things which are not to be printed using the <<
operator, and it creates a single object called Debug
. In this file are lines which either define or undefine the macro DEBUG_PRINT_OFF
.
DEBUG_PRINT_OFF
is defined, the Debug
object will be a member of class DevNull
(named for the Unix file /dev/null
which is sort of a black hole for data, never mind the black hole quantum information paradox) and whenever code sends information to Debug
with the shift operator using code such as DEBUG_PRINT_OFF
is undefined, the Debug
object will be a reference to Serial
and debugging information will be printed there.Print
such as SD cards or other serial ports.License: This file is copyright 2021 by JR Ridgely and released under the Lesser GNU Public License, version 2. It intended for educational use only, but its use is not limited thereto.
DevNull Debug |
Defining this macro causes debugging printouts to be suppressed.
If debugging printouts have been turned off, create an object of class DevNull
which doesn't cause anything to be printed. This should be the only such object which ever needs to be created, unless there are several independently activated and/or deactivated debug-print things.