Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of command_AX12 by
mbed/FileLike.h@5:cdcab419428c, 2017-05-02 (annotated)
- Committer:
- SquirrelGod
- Date:
- Tue May 02 12:07:11 2017 +0000
- Revision:
- 5:cdcab419428c
- Parent:
- 2:99b1cb0d9f5e
pour clement 02/05/2017
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
SquirrelGod | 2:99b1cb0d9f5e | 1 | /* mbed Microcontroller Library - FileLike |
SquirrelGod | 2:99b1cb0d9f5e | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
SquirrelGod | 2:99b1cb0d9f5e | 3 | */ |
SquirrelGod | 2:99b1cb0d9f5e | 4 | |
SquirrelGod | 2:99b1cb0d9f5e | 5 | #ifndef MBED_FILELIKE_H |
SquirrelGod | 2:99b1cb0d9f5e | 6 | #define MBED_FILELIKE_H |
SquirrelGod | 2:99b1cb0d9f5e | 7 | |
SquirrelGod | 2:99b1cb0d9f5e | 8 | #include "Base.h" |
SquirrelGod | 2:99b1cb0d9f5e | 9 | #include "FileHandle.h" |
SquirrelGod | 2:99b1cb0d9f5e | 10 | |
SquirrelGod | 2:99b1cb0d9f5e | 11 | namespace mbed { |
SquirrelGod | 2:99b1cb0d9f5e | 12 | |
SquirrelGod | 2:99b1cb0d9f5e | 13 | /* Class FileLike |
SquirrelGod | 2:99b1cb0d9f5e | 14 | * A file-like object is one that can be opened with fopen by |
SquirrelGod | 2:99b1cb0d9f5e | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
SquirrelGod | 2:99b1cb0d9f5e | 16 | * FileHandle. |
SquirrelGod | 2:99b1cb0d9f5e | 17 | */ |
SquirrelGod | 2:99b1cb0d9f5e | 18 | class FileLike : public Base, public FileHandle { |
SquirrelGod | 2:99b1cb0d9f5e | 19 | |
SquirrelGod | 2:99b1cb0d9f5e | 20 | public: |
SquirrelGod | 2:99b1cb0d9f5e | 21 | /* Constructor FileLike |
SquirrelGod | 2:99b1cb0d9f5e | 22 | * |
SquirrelGod | 2:99b1cb0d9f5e | 23 | * Variables |
SquirrelGod | 2:99b1cb0d9f5e | 24 | * name - The name to use to open the file. |
SquirrelGod | 2:99b1cb0d9f5e | 25 | */ |
SquirrelGod | 2:99b1cb0d9f5e | 26 | FileLike(const char *name) : Base(name) { } |
SquirrelGod | 2:99b1cb0d9f5e | 27 | virtual ~FileLike(); |
SquirrelGod | 2:99b1cb0d9f5e | 28 | |
SquirrelGod | 2:99b1cb0d9f5e | 29 | }; |
SquirrelGod | 2:99b1cb0d9f5e | 30 | |
SquirrelGod | 2:99b1cb0d9f5e | 31 | } // namespace mbed |
SquirrelGod | 2:99b1cb0d9f5e | 32 | |
SquirrelGod | 2:99b1cb0d9f5e | 33 | #endif |