This is my quadcopter prototype software, still in development!
quadv3/mbed/FileLike.h@1:ac68f0368a77, 2013-07-23 (annotated)
- Committer:
- Anaesthetix
- Date:
- Tue Jul 23 14:01:42 2013 +0000
- Revision:
- 1:ac68f0368a77
- Parent:
- 0:978110f7f027
Other accelerometer added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anaesthetix | 0:978110f7f027 | 1 | /* mbed Microcontroller Library - FileLike |
Anaesthetix | 0:978110f7f027 | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
Anaesthetix | 0:978110f7f027 | 3 | */ |
Anaesthetix | 0:978110f7f027 | 4 | |
Anaesthetix | 0:978110f7f027 | 5 | #ifndef MBED_FILELIKE_H |
Anaesthetix | 0:978110f7f027 | 6 | #define MBED_FILELIKE_H |
Anaesthetix | 0:978110f7f027 | 7 | |
Anaesthetix | 0:978110f7f027 | 8 | #include "Base.h" |
Anaesthetix | 0:978110f7f027 | 9 | #include "FileHandle.h" |
Anaesthetix | 0:978110f7f027 | 10 | |
Anaesthetix | 0:978110f7f027 | 11 | namespace mbed { |
Anaesthetix | 0:978110f7f027 | 12 | |
Anaesthetix | 0:978110f7f027 | 13 | /* Class FileLike |
Anaesthetix | 0:978110f7f027 | 14 | * A file-like object is one that can be opened with fopen by |
Anaesthetix | 0:978110f7f027 | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
Anaesthetix | 0:978110f7f027 | 16 | * FileHandle. |
Anaesthetix | 0:978110f7f027 | 17 | */ |
Anaesthetix | 0:978110f7f027 | 18 | class FileLike : public Base, public FileHandle { |
Anaesthetix | 0:978110f7f027 | 19 | |
Anaesthetix | 0:978110f7f027 | 20 | public: |
Anaesthetix | 0:978110f7f027 | 21 | /* Constructor FileLike |
Anaesthetix | 0:978110f7f027 | 22 | * |
Anaesthetix | 0:978110f7f027 | 23 | * Variables |
Anaesthetix | 0:978110f7f027 | 24 | * name - The name to use to open the file. |
Anaesthetix | 0:978110f7f027 | 25 | */ |
Anaesthetix | 0:978110f7f027 | 26 | FileLike(const char *name) : Base(name) { } |
Anaesthetix | 0:978110f7f027 | 27 | virtual ~FileLike(); |
Anaesthetix | 0:978110f7f027 | 28 | |
Anaesthetix | 0:978110f7f027 | 29 | }; |
Anaesthetix | 0:978110f7f027 | 30 | |
Anaesthetix | 0:978110f7f027 | 31 | } // namespace mbed |
Anaesthetix | 0:978110f7f027 | 32 | |
Anaesthetix | 0:978110f7f027 | 33 | #endif |