SD card interface
mbed-export/FileLike.h@0:22612ae617a0, 2012-10-08 (annotated)
- Committer:
- lharoon
- Date:
- Mon Oct 08 11:14:07 2012 +0000
- Revision:
- 0:22612ae617a0
1st edition
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lharoon | 0:22612ae617a0 | 1 | /* mbed Microcontroller Library - FileLike |
lharoon | 0:22612ae617a0 | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
lharoon | 0:22612ae617a0 | 3 | */ |
lharoon | 0:22612ae617a0 | 4 | |
lharoon | 0:22612ae617a0 | 5 | #ifndef MBED_FILELIKE_H |
lharoon | 0:22612ae617a0 | 6 | #define MBED_FILELIKE_H |
lharoon | 0:22612ae617a0 | 7 | |
lharoon | 0:22612ae617a0 | 8 | #include "Base.h" |
lharoon | 0:22612ae617a0 | 9 | #include "FileHandle.h" |
lharoon | 0:22612ae617a0 | 10 | |
lharoon | 0:22612ae617a0 | 11 | namespace mbed { |
lharoon | 0:22612ae617a0 | 12 | |
lharoon | 0:22612ae617a0 | 13 | /* Class FileLike |
lharoon | 0:22612ae617a0 | 14 | * A file-like object is one that can be opened with fopen by |
lharoon | 0:22612ae617a0 | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
lharoon | 0:22612ae617a0 | 16 | * FileHandle. |
lharoon | 0:22612ae617a0 | 17 | */ |
lharoon | 0:22612ae617a0 | 18 | class FileLike : public Base, public FileHandle { |
lharoon | 0:22612ae617a0 | 19 | |
lharoon | 0:22612ae617a0 | 20 | public: |
lharoon | 0:22612ae617a0 | 21 | /* Constructor FileLike |
lharoon | 0:22612ae617a0 | 22 | * |
lharoon | 0:22612ae617a0 | 23 | * Variables |
lharoon | 0:22612ae617a0 | 24 | * name - The name to use to open the file. |
lharoon | 0:22612ae617a0 | 25 | */ |
lharoon | 0:22612ae617a0 | 26 | FileLike(const char *name) : Base(name) { } |
lharoon | 0:22612ae617a0 | 27 | virtual ~FileLike(); |
lharoon | 0:22612ae617a0 | 28 | |
lharoon | 0:22612ae617a0 | 29 | }; |
lharoon | 0:22612ae617a0 | 30 | |
lharoon | 0:22612ae617a0 | 31 | } // namespace mbed |
lharoon | 0:22612ae617a0 | 32 | |
lharoon | 0:22612ae617a0 | 33 | #endif |