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