CDY version that shares functionality with Counter

Dependencies:   SDFileSystem_HelloWorld mbed FATFileSystem

Committer:
Charles David Young
Date:
Sun Nov 04 18:44:51 2018 -0700
Revision:
0:aa13e1c335cd
create new repo for show2me

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Charles David Young 0:aa13e1c335cd 1 /* mbed Microcontroller Library
Charles David Young 0:aa13e1c335cd 2 * Copyright (c) 2006-2013 ARM Limited
Charles David Young 0:aa13e1c335cd 3 *
Charles David Young 0:aa13e1c335cd 4 * Licensed under the Apache License, Version 2.0 (the "License");
Charles David Young 0:aa13e1c335cd 5 * you may not use this file except in compliance with the License.
Charles David Young 0:aa13e1c335cd 6 * You may obtain a copy of the License at
Charles David Young 0:aa13e1c335cd 7 *
Charles David Young 0:aa13e1c335cd 8 * http://www.apache.org/licenses/LICENSE-2.0
Charles David Young 0:aa13e1c335cd 9 *
Charles David Young 0:aa13e1c335cd 10 * Unless required by applicable law or agreed to in writing, software
Charles David Young 0:aa13e1c335cd 11 * distributed under the License is distributed on an "AS IS" BASIS,
Charles David Young 0:aa13e1c335cd 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Charles David Young 0:aa13e1c335cd 13 * See the License for the specific language governing permissions and
Charles David Young 0:aa13e1c335cd 14 * limitations under the License.
Charles David Young 0:aa13e1c335cd 15 */
Charles David Young 0:aa13e1c335cd 16 #ifndef MBED_FILELIKE_H
Charles David Young 0:aa13e1c335cd 17 #define MBED_FILELIKE_H
Charles David Young 0:aa13e1c335cd 18
Charles David Young 0:aa13e1c335cd 19 #include "drivers/FileBase.h"
Charles David Young 0:aa13e1c335cd 20 #include "drivers/FileHandle.h"
Charles David Young 0:aa13e1c335cd 21
Charles David Young 0:aa13e1c335cd 22 namespace mbed {
Charles David Young 0:aa13e1c335cd 23 /** \addtogroup drivers */
Charles David Young 0:aa13e1c335cd 24 /** @{*/
Charles David Young 0:aa13e1c335cd 25
Charles David Young 0:aa13e1c335cd 26 /* Class FileLike
Charles David Young 0:aa13e1c335cd 27 * A file-like object is one that can be opened with fopen by
Charles David Young 0:aa13e1c335cd 28 * fopen("/name", mode). It is intersection of the classes Base and
Charles David Young 0:aa13e1c335cd 29 * FileHandle.
Charles David Young 0:aa13e1c335cd 30 *
Charles David Young 0:aa13e1c335cd 31 * @Note Synchronization level: Set by subclass
Charles David Young 0:aa13e1c335cd 32 */
Charles David Young 0:aa13e1c335cd 33 class FileLike : public FileHandle, public FileBase {
Charles David Young 0:aa13e1c335cd 34
Charles David Young 0:aa13e1c335cd 35 public:
Charles David Young 0:aa13e1c335cd 36 /* Constructor FileLike
Charles David Young 0:aa13e1c335cd 37 *
Charles David Young 0:aa13e1c335cd 38 * Variables
Charles David Young 0:aa13e1c335cd 39 * name - The name to use to open the file.
Charles David Young 0:aa13e1c335cd 40 */
Charles David Young 0:aa13e1c335cd 41 FileLike(const char *name);
Charles David Young 0:aa13e1c335cd 42
Charles David Young 0:aa13e1c335cd 43 virtual ~FileLike();
Charles David Young 0:aa13e1c335cd 44
Charles David Young 0:aa13e1c335cd 45 };
Charles David Young 0:aa13e1c335cd 46
Charles David Young 0:aa13e1c335cd 47 } // namespace mbed
Charles David Young 0:aa13e1c335cd 48
Charles David Young 0:aa13e1c335cd 49 #endif
Charles David Young 0:aa13e1c335cd 50
Charles David Young 0:aa13e1c335cd 51 /** @}*/