Lab 1 Program C
Fork of mbed by
Diff: FileLike.h
- Revision:
- 4:5d1359a283bc
- Child:
- 9:cf0d45ce28a6
diff -r aefd12a1f1c5 -r 5d1359a283bc FileLike.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FileLike.h Thu Nov 27 16:23:24 2008 +0000 @@ -0,0 +1,30 @@ +/* Copyright 2008 ARM Limited. All rights reserved. */ + +#ifndef MBED_FILELIKE_H +#define MBED_FILELIKE_H + +#include "Base.h" +#include "FileHandle.h" + +namespace mbed { + +/* Class FileLike + * A file-like object is one that can be opened with fopen by + * fopen("/name", mode). It is intersection of the classes Base and + * FileHandle. + */ +class FileLike : public Base, public FileHandle { + + public: + /* Constructor FileLike + * + * Variables + * name - The name to use to open the file. + */ + FileLike(const char *name) : Base(name) { } + +}; + +} // namespace mbed + +#endif