branch with improvemnts

Fork of M2XStreamClient by AT&T M2X Team

Committer:
jb8414
Date:
Wed Feb 12 19:43:34 2014 +0000
Revision:
0:f479e4f4db0e
initial commit from github revision b98a6d0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jb8414 0:f479e4f4db0e 1 #ifndef NullPrint_h
jb8414 0:f479e4f4db0e 2 #define NullPrint_h
jb8414 0:f479e4f4db0e 3
jb8414 0:f479e4f4db0e 4 #include "Print.h"
jb8414 0:f479e4f4db0e 5
jb8414 0:f479e4f4db0e 6 // Null Print class used to calculate length to print
jb8414 0:f479e4f4db0e 7 class NullPrint : public Print {
jb8414 0:f479e4f4db0e 8 public:
jb8414 0:f479e4f4db0e 9 virtual size_t write(uint8_t b) {
jb8414 0:f479e4f4db0e 10 return 1;
jb8414 0:f479e4f4db0e 11 }
jb8414 0:f479e4f4db0e 12
jb8414 0:f479e4f4db0e 13 virtual size_t write(const uint8_t* buf, size_t size) {
jb8414 0:f479e4f4db0e 14 return size;
jb8414 0:f479e4f4db0e 15 }
jb8414 0:f479e4f4db0e 16 };
jb8414 0:f479e4f4db0e 17
jb8414 0:f479e4f4db0e 18 #endif /* NullPrint_h */