Programme d'utilisation servomotors MX12 V1
Fork of Utilisation_MX12 by
mbed/FileLike.h@1:ac14e1422ab3, 2017-05-20 (annotated)
- Committer:
- R66Y
- Date:
- Sat May 20 08:14:35 2017 +0000
- Revision:
- 1:ac14e1422ab3
- Parent:
- 0:80df663dd15e
programme de contr?le de l'MX12 (trappe d'ouverture du lanceur)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
R66Y | 0:80df663dd15e | 1 | /* mbed Microcontroller Library - FileLike |
R66Y | 0:80df663dd15e | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
R66Y | 0:80df663dd15e | 3 | */ |
R66Y | 0:80df663dd15e | 4 | |
R66Y | 0:80df663dd15e | 5 | #ifndef MBED_FILELIKE_H |
R66Y | 0:80df663dd15e | 6 | #define MBED_FILELIKE_H |
R66Y | 0:80df663dd15e | 7 | |
R66Y | 0:80df663dd15e | 8 | #include "Base.h" |
R66Y | 0:80df663dd15e | 9 | #include "FileHandle.h" |
R66Y | 0:80df663dd15e | 10 | |
R66Y | 0:80df663dd15e | 11 | namespace mbed { |
R66Y | 0:80df663dd15e | 12 | |
R66Y | 0:80df663dd15e | 13 | /* Class FileLike |
R66Y | 0:80df663dd15e | 14 | * A file-like object is one that can be opened with fopen by |
R66Y | 0:80df663dd15e | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
R66Y | 0:80df663dd15e | 16 | * FileHandle. |
R66Y | 0:80df663dd15e | 17 | */ |
R66Y | 0:80df663dd15e | 18 | class FileLike : public Base, public FileHandle { |
R66Y | 0:80df663dd15e | 19 | |
R66Y | 0:80df663dd15e | 20 | public: |
R66Y | 0:80df663dd15e | 21 | /* Constructor FileLike |
R66Y | 0:80df663dd15e | 22 | * |
R66Y | 0:80df663dd15e | 23 | * Variables |
R66Y | 0:80df663dd15e | 24 | * name - The name to use to open the file. |
R66Y | 0:80df663dd15e | 25 | */ |
R66Y | 0:80df663dd15e | 26 | FileLike(const char *name) : Base(name) { } |
R66Y | 0:80df663dd15e | 27 | virtual ~FileLike(); |
R66Y | 0:80df663dd15e | 28 | |
R66Y | 0:80df663dd15e | 29 | }; |
R66Y | 0:80df663dd15e | 30 | |
R66Y | 0:80df663dd15e | 31 | } // namespace mbed |
R66Y | 0:80df663dd15e | 32 | |
R66Y | 0:80df663dd15e | 33 | #endif |