Arduino Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
print_uint8_t.hpp
Go to the documentation of this file.
1 // Author: Mario S. Könz <mskoenz@gmx.net>
2 // Date: 14.06.2013 20:45:56 EDT
3 // File: print_uint_8.hpp
4 
5 /* This program is free software. It comes without any warranty, to
6  * the extent permitted by applicable law. You can redistribute it
7  * and/or modify it under the terms of the Do What The Fuck You Want
8  * To Public License, Version 2, as published by Sam Hocevar. See
9  * http://www.wtfpl.net/ or COPYING for more details. */
10 
11 #ifndef __PRINT_UINT_8_HEADER
12 #define __PRINT_UINT_8_HEADER
13 
14 //------------------- i want uint8_t to display as a number -------------------
15 inline std::ostream & operator<<(std::ostream & os, uint8_t const & a) {
16  os << int(a);
17  return os;
18 }
19 namespace ustd {
20  inline std::ostream & operator<<(std::ostream & os, uint8_t const & a) {
21  os << int(a);
22  return os;
23  }
24 }//end namespace ustd
25 namespace com {
26  inline std::ostream & operator<<(std::ostream & os, uint8_t const & a) {
27  os << int(a);
28  return os;
29  }
30 }//end namespace com
31 namespace tool {
32  inline std::ostream & operator<<(std::ostream & os, uint8_t const & a) {
33  os << int(a);
34  return os;
35  }
36 }//end namespace tool
37 
38 #endif //__PRINT_UINT_8_HEADER
S & operator<<(S &os, oss_class< D, max_buf > const &arg)
Definition: serializer.hpp:158
std::ostream & operator<<(std::ostream &os, uint8_t const &a)
Definition: print_uint8_t.hpp:20
std::ostream & operator<<(std::ostream &os, uint8_t const &a)
Definition: print_uint8_t.hpp:32