The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
Kojto
Date:
Wed Jul 19 16:46:19 2017 +0100
Revision:
147:a97add6d7e64
Parent:
146:22da6e220af6
Release 147 of the mbed library.

Who changed what in which revision?

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