UIPEthernet library for Arduino IDE, Eclipse with arduino plugin and MBED/SMeshStudio (AVR,STM32F,ESP8266,Intel ARC32,Nordic nRF51,Teensy boards,Realtek Ameba(RTL8195A,RTL8710)), ENC28j60 network chip. Compatible with Wiznet W5100 Ethernet library API. Compiled and tested on Nucleo-F302R8. Master repository is: https://github.com/UIPEthernet/UIPEthernet/

Committer:
cassyarduino
Date:
Tue Jan 23 15:08:43 2018 +0100
Revision:
39:deeb00b81cc9
Parent:
35:f9f3a91fe4d4
Release: 2.0.4

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cassyarduino 7:ef1f092165eb 1 /*
cassyarduino 7:ef1f092165eb 2 Printable.h - Interface class that allows printing of complex types
cassyarduino 7:ef1f092165eb 3 Copyright (c) 2011 Adrian McEwen. All right reserved.
cassyarduino 7:ef1f092165eb 4
cassyarduino 7:ef1f092165eb 5 This library is free software; you can redistribute it and/or
cassyarduino 7:ef1f092165eb 6 modify it under the terms of the GNU Lesser General Public
cassyarduino 7:ef1f092165eb 7 License as published by the Free Software Foundation; either
cassyarduino 7:ef1f092165eb 8 version 2.1 of the License, or (at your option) any later version.
cassyarduino 7:ef1f092165eb 9
cassyarduino 7:ef1f092165eb 10 This library is distributed in the hope that it will be useful,
cassyarduino 7:ef1f092165eb 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
cassyarduino 7:ef1f092165eb 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
cassyarduino 7:ef1f092165eb 13 Lesser General Public License for more details.
cassyarduino 7:ef1f092165eb 14
cassyarduino 7:ef1f092165eb 15 You should have received a copy of the GNU Lesser General Public
cassyarduino 7:ef1f092165eb 16 License along with this library; if not, write to the Free Software
cassyarduino 7:ef1f092165eb 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
cassyarduino 7:ef1f092165eb 18 */
cassyarduino 35:f9f3a91fe4d4 19 #if !defined(ARDUINO_ARCH_AVR) && !defined(ARDUINO_ARCH_SAM)
cassyarduino 7:ef1f092165eb 20
cassyarduino 7:ef1f092165eb 21 #ifndef Printable_h
cassyarduino 7:ef1f092165eb 22 #define Printable_h
cassyarduino 7:ef1f092165eb 23
cassyarduino 7:ef1f092165eb 24 #include <stdlib.h>
cassyarduino 7:ef1f092165eb 25
cassyarduino 7:ef1f092165eb 26 class Print;
cassyarduino 7:ef1f092165eb 27
cassyarduino 7:ef1f092165eb 28 /** The Printable class provides a way for new classes to allow themselves to be printed.
cassyarduino 7:ef1f092165eb 29 By deriving from Printable and implementing the printTo method, it will then be possible
cassyarduino 7:ef1f092165eb 30 for users to print out instances of this class by passing them into the usual
cassyarduino 7:ef1f092165eb 31 Print::print and Print::println methods.
cassyarduino 7:ef1f092165eb 32 */
cassyarduino 7:ef1f092165eb 33
cassyarduino 7:ef1f092165eb 34 class Printable
cassyarduino 7:ef1f092165eb 35 {
cassyarduino 7:ef1f092165eb 36 public:
cassyarduino 35:f9f3a91fe4d4 37 virtual ~Printable(){};
cassyarduino 7:ef1f092165eb 38 virtual size_t printTo(Print& p) const = 0;
cassyarduino 7:ef1f092165eb 39 };
cassyarduino 7:ef1f092165eb 40
cassyarduino 7:ef1f092165eb 41 #endif
cassyarduino 35:f9f3a91fe4d4 42 #endif