mbed libraries for KL25Z

Dependents:   FRDM_RGBLED

Revision:
0:8024c367e29f
Child:
2:e9a661555b58
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FileLike.h	Fri Oct 05 09:16:41 2012 +0000
@@ -0,0 +1,33 @@
+/* mbed Microcontroller Library - FileLike
+ * Copyright (c) 2008-2009 ARM Limited. All rights reserved.
+ */
+#ifndef MBED_FILELIKE_H
+#define MBED_FILELIKE_H
+
+#include "Base.h"
+#include "FileHandle.h"
+
+namespace mbed {
+
+/* Class FileLike
+ *  A file-like object is one that can be opened with fopen by
+ *  fopen("/name", mode). It is intersection of the classes Base and
+ *  FileHandle.
+ */
+class FileLike : public Base, public FileHandle {
+    
+ public:
+    /* Constructor FileLike
+     *
+     * Variables
+     *  name - The name to use to open the file.
+     */
+    FileLike(const char *name) : Base(name) {
+        base_type = FileType;
+    }
+    virtual ~FileLike();
+};
+
+} // namespace mbed
+
+#endif