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