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