mbed library sources. Supersedes mbed-src.

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
Anythingconnected
Date:
Mon Dec 18 10:14:27 2017 +0000
Revision:
180:d79f997829d6
Parent:
178:79309dc6340a
Getting byte by byte read to work

Who changed what in which revision?

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