Programme d'utilisation des AX12 avec rajout de l'MX12
Fork of test_carteAToutFaire_PR by
mbed/FileLike.h@1:f3f702086a30, 2017-05-11 (annotated)
- Committer:
- ClementBreteau
- Date:
- Thu May 11 11:49:50 2017 +0000
- Revision:
- 1:f3f702086a30
test de la carte ? tout faire du petit robot
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ClementBreteau | 1:f3f702086a30 | 1 | /* mbed Microcontroller Library - FileLike |
ClementBreteau | 1:f3f702086a30 | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
ClementBreteau | 1:f3f702086a30 | 3 | */ |
ClementBreteau | 1:f3f702086a30 | 4 | |
ClementBreteau | 1:f3f702086a30 | 5 | #ifndef MBED_FILELIKE_H |
ClementBreteau | 1:f3f702086a30 | 6 | #define MBED_FILELIKE_H |
ClementBreteau | 1:f3f702086a30 | 7 | |
ClementBreteau | 1:f3f702086a30 | 8 | #include "Base.h" |
ClementBreteau | 1:f3f702086a30 | 9 | #include "FileHandle.h" |
ClementBreteau | 1:f3f702086a30 | 10 | |
ClementBreteau | 1:f3f702086a30 | 11 | namespace mbed { |
ClementBreteau | 1:f3f702086a30 | 12 | |
ClementBreteau | 1:f3f702086a30 | 13 | /* Class FileLike |
ClementBreteau | 1:f3f702086a30 | 14 | * A file-like object is one that can be opened with fopen by |
ClementBreteau | 1:f3f702086a30 | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
ClementBreteau | 1:f3f702086a30 | 16 | * FileHandle. |
ClementBreteau | 1:f3f702086a30 | 17 | */ |
ClementBreteau | 1:f3f702086a30 | 18 | class FileLike : public Base, public FileHandle { |
ClementBreteau | 1:f3f702086a30 | 19 | |
ClementBreteau | 1:f3f702086a30 | 20 | public: |
ClementBreteau | 1:f3f702086a30 | 21 | /* Constructor FileLike |
ClementBreteau | 1:f3f702086a30 | 22 | * |
ClementBreteau | 1:f3f702086a30 | 23 | * Variables |
ClementBreteau | 1:f3f702086a30 | 24 | * name - The name to use to open the file. |
ClementBreteau | 1:f3f702086a30 | 25 | */ |
ClementBreteau | 1:f3f702086a30 | 26 | FileLike(const char *name) : Base(name) { } |
ClementBreteau | 1:f3f702086a30 | 27 | virtual ~FileLike(); |
ClementBreteau | 1:f3f702086a30 | 28 | |
ClementBreteau | 1:f3f702086a30 | 29 | }; |
ClementBreteau | 1:f3f702086a30 | 30 | |
ClementBreteau | 1:f3f702086a30 | 31 | } // namespace mbed |
ClementBreteau | 1:f3f702086a30 | 32 | |
ClementBreteau | 1:f3f702086a30 | 33 | #endif |