pour trouver l'automate de reception can
Fork of CRAC-Strat_copy by
mbed/FileLike.h@15:c2fc239e85df, 2017-05-11 (annotated)
- Committer:
- ClementBreteau
- Date:
- Thu May 11 12:55:52 2017 +0000
- Revision:
- 15:c2fc239e85df
- Parent:
- 0:ad97421fb1fb
crac strat le 11/05/17
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
antbig | 0:ad97421fb1fb | 1 | /* mbed Microcontroller Library - FileLike |
antbig | 0:ad97421fb1fb | 2 | * Copyright (c) 2008-2009 ARM Limited. All rights reserved. |
antbig | 0:ad97421fb1fb | 3 | */ |
antbig | 0:ad97421fb1fb | 4 | |
antbig | 0:ad97421fb1fb | 5 | #ifndef MBED_FILELIKE_H |
antbig | 0:ad97421fb1fb | 6 | #define MBED_FILELIKE_H |
antbig | 0:ad97421fb1fb | 7 | |
antbig | 0:ad97421fb1fb | 8 | #include "Base.h" |
antbig | 0:ad97421fb1fb | 9 | #include "FileHandle.h" |
antbig | 0:ad97421fb1fb | 10 | |
antbig | 0:ad97421fb1fb | 11 | namespace mbed { |
antbig | 0:ad97421fb1fb | 12 | |
antbig | 0:ad97421fb1fb | 13 | /* Class FileLike |
antbig | 0:ad97421fb1fb | 14 | * A file-like object is one that can be opened with fopen by |
antbig | 0:ad97421fb1fb | 15 | * fopen("/name", mode). It is intersection of the classes Base and |
antbig | 0:ad97421fb1fb | 16 | * FileHandle. |
antbig | 0:ad97421fb1fb | 17 | */ |
antbig | 0:ad97421fb1fb | 18 | class FileLike : public Base, public FileHandle { |
antbig | 0:ad97421fb1fb | 19 | |
antbig | 0:ad97421fb1fb | 20 | public: |
antbig | 0:ad97421fb1fb | 21 | /* Constructor FileLike |
antbig | 0:ad97421fb1fb | 22 | * |
antbig | 0:ad97421fb1fb | 23 | * Variables |
antbig | 0:ad97421fb1fb | 24 | * name - The name to use to open the file. |
antbig | 0:ad97421fb1fb | 25 | */ |
antbig | 0:ad97421fb1fb | 26 | FileLike(const char *name) : Base(name) { } |
antbig | 0:ad97421fb1fb | 27 | virtual ~FileLike(); |
antbig | 0:ad97421fb1fb | 28 | |
antbig | 0:ad97421fb1fb | 29 | }; |
antbig | 0:ad97421fb1fb | 30 | |
antbig | 0:ad97421fb1fb | 31 | } // namespace mbed |
antbig | 0:ad97421fb1fb | 32 | |
antbig | 0:ad97421fb1fb | 33 | #endif |