Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Committer:
emilmont
Date:
Tue Nov 29 14:59:27 2011 +0000
Revision:
27:7110ebee3484
Parent:
11:1c1ebd0324fa
Child:
43:aff670d0d510
New Libraries 11.11

Who changed what in which revision?

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