Mistake on this page?
Report an issue in GitHub or email us
FileSystemLike.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2006-2019 ARM Limited
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef MBED_FILESYSTEMLIKE_H
18 #define MBED_FILESYSTEMLIKE_H
19 
20 #include "platform/platform.h"
21 
22 #include "platform/FileBase.h"
23 #include "platform/FileSystemHandle.h"
24 #include "platform/FileHandle.h"
25 #include "platform/DirHandle.h"
26 #include "platform/NonCopyable.h"
27 
28 namespace mbed {
29 /**
30  * \defgroup platform_FileSystemLike FileSystemLike functions
31  * \ingroup platform-public-api-file
32  * @{
33  */
34 
35 
36 /** A filesystem-like object is one that can be used to open file-like
37  * objects though it by fopen("/name/filename", mode)
38  *
39  * Implementations must define at least open (the default definitions
40  * of the rest of the functions just return error values).
41  *
42  * @note Synchronization level: Set by subclass
43  */
44 class FileSystemLike : public FileSystemHandle, public FileBase, private NonCopyable<FileSystemLike> {
45 public:
46  /** FileSystemLike lifetime
47  */
48  FileSystemLike(const char *name = NULL) : FileBase(name, FileSystemPathType) {}
49  virtual ~FileSystemLike() {}
50 
51 };
52 
53 /**@}*/
54 
55 } // namespace mbed
56 
57 #endif
A filesystem-like object is one that can be used to open file-like objects though it by fopen("/name/...
Prevents generation of copy constructor and copy assignment operator in derived classes.
Definition: NonCopyable.h:162
FileSystemLike(const char *name=NULL)
FileSystemLike lifetime.
A filesystem-like object is one that can be used to open file-like objects though it by fopen("/name/...
Class FileBase.
Definition: FileBase.h:48
Definition: ATHandler.h:46
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.