Wiljan Arias / WhexReefMonitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Revision:
4:a19825caaf41
Parent:
3:5dc0023e6284
Child:
5:df012c2caf40
diff -r 5dc0023e6284 -r a19825caaf41 mbed/Stream.h
--- a/mbed/Stream.h	Fri Jan 31 23:19:28 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-/* mbed Microcontroller Library - Stream
- * Copyright (c) 2007-2009 ARM Limited. All rights reserved.
- * sford
- */ 
- 
-#ifndef MBED_STREAM_H
-#define MBED_STREAM_H
-
-#include "FileLike.h"
-#include "platform.h"
-#include <cstdio>
-
-namespace mbed {
-
-class Stream : public FileLike {
-
-public:
-    
-    Stream(const char *name = NULL);
-    virtual ~Stream();
-
-    int putc(int c) {
-        fflush(_file);
-        return std::fputc(c, _file); 
-    }
-    int puts(const char *s) {
-        fflush(_file);
-        return std::fputs(s, _file); 
-    }
-    int getc() {
-        fflush(_file);
-        return std::fgetc(_file);
-    }
-    char *gets(char *s, int size) {
-        fflush(_file);
-        return std::fgets(s,size,_file);;
-    }
-    int printf(const char* format, ...);
-    int scanf(const char* format, ...);
-    
-    operator std::FILE*() { return _file; }
-
-#ifdef MBED_RPC
-    virtual const struct rpc_method *get_rpc_methods();
-#endif
-
-protected:
-
-    virtual int close();
-    virtual ssize_t write(const void* buffer, size_t length);
-    virtual ssize_t read(void* buffer, size_t length);
-    virtual off_t lseek(off_t offset, int whence);
-    virtual int isatty();
-    virtual int fsync();
-    virtual off_t flen();
-
-    virtual int _putc(int c) = 0;
-    virtual int _getc() = 0;
-    
-    std::FILE *_file;
-    
-};
-
-} // namespace mbed
-
-#endif
-