mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FileLike.h Source File

FileLike.h

00001 /* mbed Microcontroller Library
00002  * Copyright (c) 2006-2013 ARM Limited
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 #ifndef MBED_FILELIKE_H
00018 #define MBED_FILELIKE_H
00019 
00020 #include "platform/mbed_toolchain.h"
00021 #include "platform/FileBase.h"
00022 #include "platform/FileHandle.h"
00023 #include "platform/NonCopyable.h"
00024 
00025 namespace mbed {
00026 /** \addtogroup platform */
00027 /** @{*/
00028 /**
00029  * \defgroup platform_FileLike FileLike class
00030  * @{
00031  */
00032 /** Class FileLike
00033  *
00034  *  A file-like object is one that can be opened with fopen by
00035  *  fopen("/name", mode).
00036  *
00037  *  @note Synchronization level: Set by subclass
00038  */
00039 class FileLike : public FileHandle, public FileBase, private NonCopyable<FileLike> {
00040 public:
00041     /** Constructor FileLike
00042      *
00043      *  @param name     The name to use to open the file.
00044      */
00045     FileLike(const char *name = NULL) : FileBase(name, FilePathType) {}
00046     virtual ~FileLike() {}
00047 };
00048 
00049 /**@}*/
00050 
00051 /**@}*/
00052 
00053 } // namespace mbed
00054 
00055 #endif