Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: handlers/FileHandler.h
- Revision:
- 2:ccaae77f91b8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/handlers/FileHandler.h Sat Mar 03 19:01:29 2018 +0000
@@ -0,0 +1,32 @@
+/*FileHandler.h*/
+#ifndef FILE_HANDLER_H
+#define FILE_HANDLER_H
+#include "mbed.h"
+#include "string.h"
+#include <stdlib.h>
+
+using namespace std;
+class FileHandler
+{
+public:
+ FileHandler();
+ ~FileHandler();
+ FILE* open(const char*, const char*);
+ int close();
+ virtual int getc();
+ bool arrival();
+ bool atEOF();
+ bool hasError();
+ char *getFullpath();
+ char *getFilename();
+ char *getSuffix();
+ int getFileSize();
+private:
+ FILE *fp;
+ char *fullpath;
+ char *filename;
+ char *suffix;
+ char content_buffer[1024];
+ int file_size;
+};
+#endif
\ No newline at end of file