|
Revision 29, 0.7 kB
(checked in by emilmont, 6 months ago)
|
|
New Libraries 11.11
|
| Line | |
|---|
| 1 | /* mbed Microcontroller Library - FileLike |
|---|
| 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
|---|
| 3 | */ |
|---|
| 4 | |
|---|
| 5 | #ifndef MBED_FILELIKE_H |
|---|
| 6 | #define MBED_FILELIKE_H |
|---|
| 7 | |
|---|
| 8 | #include "Base.h" |
|---|
| 9 | #include "FileHandle.h" |
|---|
| 10 | |
|---|
| 11 | namespace mbed { |
|---|
| 12 | |
|---|
| 13 | /* Class FileLike |
|---|
| 14 | * A file-like object is one that can be opened with fopen by |
|---|
| 15 | * fopen("/name", mode). It is intersection of the classes Base and |
|---|
| 16 | * FileHandle. |
|---|
| 17 | */ |
|---|
| 18 | class FileLike : public Base, public FileHandle { |
|---|
| 19 | |
|---|
| 20 | public: |
|---|
| 21 | /* Constructor FileLike |
|---|
| 22 | * |
|---|
| 23 | * Variables |
|---|
| 24 | * name - The name to use to open the file. |
|---|
| 25 | */ |
|---|
| 26 | FileLike(const char *name) : Base(name) { } |
|---|
| 27 | virtual ~FileLike(); |
|---|
| 28 | |
|---|
| 29 | }; |
|---|
| 30 | |
|---|
| 31 | } // namespace mbed |
|---|
| 32 | |
|---|
| 33 | #endif |
|---|