This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Enumerations | Functions | Variables
PrintStream.cpp File Reference
#include "PrintStream.hpp"
Include dependency graph for PrintStream.cpp:

Go to the source code of this file.

Enumerations

enum  : char { LOWERCASE = 0x7F, UPPERCASE = 0x5F }
 

Functions

template<class T >
Print & printIntegral (Print &printer, T i)
 
Print & endl (Print &printer)
 
Print & uppercase (Print &printer)
 
Print & nouppercase (Print &printer)
 
Print & showbase (Print &printer)
 
Print & noshowbase (Print &printer)
 
Print & flush (Print &printer)
 
Print & hex (Print &printer)
 
Print & bin (Print &printer)
 
Print & dec (Print &printer)
 
Print & boolalpha (Print &printer)
 
Print & noboolalpha (Print &printer)
 
Print & leadingzeros (Print &printer)
 
Print & noleadingzeros (Print &printer)
 
Print & operator<< (Print &printer, const __FlashStringHelper *s)
 
Print & operator<< (Print &printer, const String &s)
 
Print & operator<< (Print &printer, const char s[])
 
Print & operator<< (Print &printer, char c)
 
Print & operator<< (Print &printer, unsigned char i)
 
Print & operator<< (Print &printer, int i)
 
Print & operator<< (Print &printer, unsigned int i)
 
Print & operator<< (Print &printer, int8_t i)
 
Print & operator<< (Print &printer, long i)
 
Print & operator<< (Print &printer, unsigned long i)
 
Print & operator<< (Print &printer, double d)
 
Print & operator<< (Print &printer, const Printable &p)
 
Print & operator<< (Print &printer, bool b)
 
Print & operator<< (Print &printer, manipulator pf)
 
Setbase setbase (uint8_t base)
 
Print & operator<< (Print &printer, Setbase f)
 
Setbytesep setbytesep (char bytesep)
 
Print & operator<< (Print &printer, Setbytesep f)
 
Setprecision setprecision (int n)
 
Print & operator<< (Print &printer, Setprecision f)
 
static char nibble_to_hex (uint8_t nibble)
 
template<class T >
void printHex (Print &printer, T val)
 
template<class T >
void printBin (Print &printer, T val)
 

Variables

uint8_t formatPrintStream = DEC
 
bool boolalphaPrintStream = false
 
bool leadingZerosPrintStream = false
 
uint8_t precisionPrintStream = 2
 
char byteSeparatorPrintStream = '\0'
 
enum { ... }  casePrintStream = LOWERCASE
 
bool showbasePrintStream = false
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : char
Enumerator
LOWERCASE 
UPPERCASE 

Definition at line 18 of file PrintStream.cpp.

Function Documentation

◆ printIntegral()

template<class T >
Print & printIntegral ( Print &  printer,
i 
)

Definition at line 152 of file PrintStream.cpp.

◆ endl()

Print& endl ( Print &  printer)

◆ uppercase()

Print& uppercase ( Print &  printer)

Definition at line 35 of file PrintStream.cpp.

◆ nouppercase()

Print& nouppercase ( Print &  printer)

Definition at line 40 of file PrintStream.cpp.

◆ showbase()

Print& showbase ( Print &  printer)

Definition at line 45 of file PrintStream.cpp.

◆ noshowbase()

Print& noshowbase ( Print &  printer)

Definition at line 50 of file PrintStream.cpp.

◆ flush()

Print& flush ( Print &  printer)

Definition at line 55 of file PrintStream.cpp.

◆ hex()

Print& hex ( Print &  printer)

◆ bin()

Print& bin ( Print &  printer)

Definition at line 72 of file PrintStream.cpp.

◆ dec()

Print& dec ( Print &  printer)

◆ boolalpha()

Print& boolalpha ( Print &  printer)

Definition at line 82 of file PrintStream.cpp.

◆ noboolalpha()

Print& noboolalpha ( Print &  printer)

Definition at line 86 of file PrintStream.cpp.

◆ leadingzeros()

Print& leadingzeros ( Print &  printer)

Definition at line 91 of file PrintStream.cpp.

◆ noleadingzeros()

Print& noleadingzeros ( Print &  printer)

Definition at line 95 of file PrintStream.cpp.

◆ operator<<() [1/17]

Print& operator<< ( Print &  printer,
const __FlashStringHelper *  s 
)

Definition at line 99 of file PrintStream.cpp.

◆ operator<<() [2/17]

Print& operator<< ( Print &  printer,
const String &  s 
)

Definition at line 104 of file PrintStream.cpp.

◆ operator<<() [3/17]

Print& operator<< ( Print &  printer,
const char  s[] 
)

Definition at line 109 of file PrintStream.cpp.

◆ operator<<() [4/17]

Print& operator<< ( Print &  printer,
char  c 
)

Definition at line 113 of file PrintStream.cpp.

◆ operator<<() [5/17]

Print& operator<< ( Print &  printer,
unsigned char  i 
)

Definition at line 117 of file PrintStream.cpp.

◆ operator<<() [6/17]

Print& operator<< ( Print &  printer,
int  i 
)

Definition at line 120 of file PrintStream.cpp.

◆ operator<<() [7/17]

Print& operator<< ( Print &  printer,
unsigned int  i 
)

Definition at line 123 of file PrintStream.cpp.

◆ operator<<() [8/17]

Print& operator<< ( Print &  printer,
int8_t  i 
)

Definition at line 126 of file PrintStream.cpp.

◆ operator<<() [9/17]

Print& operator<< ( Print &  printer,
long  i 
)

Definition at line 129 of file PrintStream.cpp.

◆ operator<<() [10/17]

Print& operator<< ( Print &  printer,
unsigned long  i 
)

Definition at line 132 of file PrintStream.cpp.

◆ operator<<() [11/17]

Print& operator<< ( Print &  printer,
double  d 
)

Definition at line 135 of file PrintStream.cpp.

◆ operator<<() [12/17]

Print& operator<< ( Print &  printer,
const Printable &  p 
)

Definition at line 139 of file PrintStream.cpp.

◆ operator<<() [13/17]

Print& operator<< ( Print &  printer,
bool  b 
)

Definition at line 143 of file PrintStream.cpp.

◆ operator<<() [14/17]

Print& operator<< ( Print &  printer,
manipulator  pf 
)

Definition at line 173 of file PrintStream.cpp.

◆ setbase()

Setbase setbase ( uint8_t  base)

Definition at line 177 of file PrintStream.cpp.

◆ operator<<() [15/17]

Print& operator<< ( Print &  printer,
Setbase  f 
)

Definition at line 180 of file PrintStream.cpp.

◆ setbytesep()

Setbytesep setbytesep ( char  bytesep)

Definition at line 185 of file PrintStream.cpp.

◆ operator<<() [16/17]

Print& operator<< ( Print &  printer,
Setbytesep  f 
)

Definition at line 188 of file PrintStream.cpp.

◆ setprecision()

Setprecision setprecision ( int  n)

Definition at line 193 of file PrintStream.cpp.

◆ operator<<() [17/17]

Print& operator<< ( Print &  printer,
Setprecision  f 
)

Definition at line 196 of file PrintStream.cpp.

◆ nibble_to_hex()

static char nibble_to_hex ( uint8_t  nibble)
static

Definition at line 201 of file PrintStream.cpp.

◆ printHex()

template<class T >
void printHex ( Print &  printer,
val 
)

Definition at line 211 of file PrintStream.cpp.

◆ printBin()

template<class T >
void printBin ( Print &  printer,
val 
)

Definition at line 231 of file PrintStream.cpp.

Variable Documentation

◆ formatPrintStream

uint8_t formatPrintStream = DEC

Definition at line 13 of file PrintStream.cpp.

◆ boolalphaPrintStream

bool boolalphaPrintStream = false

Definition at line 14 of file PrintStream.cpp.

◆ leadingZerosPrintStream

bool leadingZerosPrintStream = false

Definition at line 15 of file PrintStream.cpp.

◆ precisionPrintStream

uint8_t precisionPrintStream = 2

Definition at line 16 of file PrintStream.cpp.

◆ byteSeparatorPrintStream

char byteSeparatorPrintStream = '\0'

Definition at line 17 of file PrintStream.cpp.

◆ casePrintStream

enum { ... } casePrintStream

◆ showbasePrintStream

bool showbasePrintStream = false

Definition at line 22 of file PrintStream.cpp.