Fork of the official mbed C/C++ SDK provides the software platform and libraries to build your applications. The fork has the documentation converted to Doxygen format

Dependents:   NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more

Fork of mbed by mbed official

Committer:
simon.ford@mbed.co.uk
Date:
Wed Apr 15 14:15:04 2009 +0000
Revision:
9:cf0d45ce28a6
Parent:
4:5d1359a283bc
Child:
11:1c1ebd0324fa
Update library with fixes
* TimerEvent hang bugfix
* FileLike use as file pointer

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon.ford@mbed.co.uk 4:5d1359a283bc 1 /* Copyright 2008 ARM Limited. All rights reserved. */
simon.ford@mbed.co.uk 4:5d1359a283bc 2
simon.ford@mbed.co.uk 4:5d1359a283bc 3 #ifndef MBED_FILELIKE_H
simon.ford@mbed.co.uk 4:5d1359a283bc 4 #define MBED_FILELIKE_H
simon.ford@mbed.co.uk 4:5d1359a283bc 5
simon.ford@mbed.co.uk 4:5d1359a283bc 6 #include "Base.h"
simon.ford@mbed.co.uk 4:5d1359a283bc 7 #include "FileHandle.h"
simon.ford@mbed.co.uk 4:5d1359a283bc 8
simon.ford@mbed.co.uk 4:5d1359a283bc 9 namespace mbed {
simon.ford@mbed.co.uk 4:5d1359a283bc 10
simon.ford@mbed.co.uk 4:5d1359a283bc 11 /* Class FileLike
simon.ford@mbed.co.uk 4:5d1359a283bc 12 * A file-like object is one that can be opened with fopen by
simon.ford@mbed.co.uk 4:5d1359a283bc 13 * fopen("/name", mode). It is intersection of the classes Base and
simon.ford@mbed.co.uk 4:5d1359a283bc 14 * FileHandle.
simon.ford@mbed.co.uk 4:5d1359a283bc 15 */
simon.ford@mbed.co.uk 4:5d1359a283bc 16 class FileLike : public Base, public FileHandle {
simon.ford@mbed.co.uk 4:5d1359a283bc 17
simon.ford@mbed.co.uk 4:5d1359a283bc 18 public:
simon.ford@mbed.co.uk 4:5d1359a283bc 19 /* Constructor FileLike
simon.ford@mbed.co.uk 4:5d1359a283bc 20 *
simon.ford@mbed.co.uk 4:5d1359a283bc 21 * Variables
simon.ford@mbed.co.uk 4:5d1359a283bc 22 * name - The name to use to open the file.
simon.ford@mbed.co.uk 4:5d1359a283bc 23 */
simon.ford@mbed.co.uk 4:5d1359a283bc 24 FileLike(const char *name) : Base(name) { }
simon.ford@mbed.co.uk 9:cf0d45ce28a6 25 virtual ~FileLike();
simon.ford@mbed.co.uk 4:5d1359a283bc 26
simon.ford@mbed.co.uk 4:5d1359a283bc 27 };
simon.ford@mbed.co.uk 4:5d1359a283bc 28
simon.ford@mbed.co.uk 4:5d1359a283bc 29 } // namespace mbed
simon.ford@mbed.co.uk 4:5d1359a283bc 30
simon.ford@mbed.co.uk 4:5d1359a283bc 31 #endif