-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDbgPrintConsole.h
More file actions
51 lines (43 loc) · 1.18 KB
/
DbgPrintConsole.h
File metadata and controls
51 lines (43 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* DbgPrintConsole.h
*
* Created on: 21.04.2015
* Author: aschoepfer
*/
#ifndef PLAT_DEBUG_TRACE_DBGPRINTCONSOLE_H_
#define PLAT_DEBUG_TRACE_DBGPRINTCONSOLE_H_
#include "IDbgPrint.h"
#ifdef ARDUINO
#include <Arduino.h>
#endif
/**
* @brief Debug trace print for printing to a console output.
*/
class DbgPrint_Console : public IDbgPrint
{
public:
/**
* Constructor of a debug trace console printer.
*/
DbgPrint_Console();
/**
* Destructor of a debug trace console printer.
*/
virtual ~DbgPrint_Console() { }
/**
* @brief Prints a string to the console output.
* @param str Const char message to be printed.
*/
virtual void print(const char* str);
#ifdef ARDUINO
/**
* @brief Prints a string from flash memory to the console output. (ram optimization for Arduino).
* @param fshvar Const char message to be printed.
*/
virtual void print(const __FlashStringHelper* fshvar);
#endif
private: // forbidden default functions
DbgPrint_Console& operator = (const DbgPrint_Console& src); // assignment operator
DbgPrint_Console(const DbgPrint_Console& src); // copy constructor
};
#endif /* PLAT_DEBUG_TRACE_DBGPRINTCONSOLE_H_ */