Lab 1 Program C

Dependents:   Lab1C

Fork of mbed by -deleted-

Committer:
screamer
Date:
Wed Oct 24 10:44:49 2012 +0000
Revision:
43:aff670d0d510
Parent:
27:7110ebee3484
Conversion of the classes documentation to Doxygen format

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
screamer 43:aff670d0d510 13 /** A file-like object is one that can be opened with fopen by
simon.ford@mbed.co.uk 4:5d1359a283bc 14 * fopen("/name", mode). It is intersection of the classes Base and
simon.ford@mbed.co.uk 4:5d1359a283bc 15 * FileHandle.
simon.ford@mbed.co.uk 4:5d1359a283bc 16 */
simon.ford@mbed.co.uk 4:5d1359a283bc 17 class FileLike : public Base, public FileHandle {
simon.ford@mbed.co.uk 4:5d1359a283bc 18
simon.ford@mbed.co.uk 4:5d1359a283bc 19 public:
screamer 43:aff670d0d510 20 /** FileLike constructor
simon.ford@mbed.co.uk 4:5d1359a283bc 21 *
screamer 43:aff670d0d510 22 * @param 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