Nathan Yonkee
/
Nucleo_sinewave_output_copy
init
mbed-os/platform/FilePath.h@10:46a4cf51ee38, 2018-03-02 (annotated)
- Committer:
- Nathan Yonkee
- Date:
- Fri Mar 02 07:16:49 2018 -0700
- Revision:
- 10:46a4cf51ee38
- Parent:
- 9:d58e77ebd769
remove mbed-os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Nathan Yonkee |
9:d58e77ebd769 | 1 | /* mbed Microcontroller Library |
Nathan Yonkee |
9:d58e77ebd769 | 2 | * Copyright (c) 2006-2013 ARM Limited |
Nathan Yonkee |
9:d58e77ebd769 | 3 | * |
Nathan Yonkee |
9:d58e77ebd769 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Nathan Yonkee |
9:d58e77ebd769 | 5 | * you may not use this file except in compliance with the License. |
Nathan Yonkee |
9:d58e77ebd769 | 6 | * You may obtain a copy of the License at |
Nathan Yonkee |
9:d58e77ebd769 | 7 | * |
Nathan Yonkee |
9:d58e77ebd769 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Nathan Yonkee |
9:d58e77ebd769 | 9 | * |
Nathan Yonkee |
9:d58e77ebd769 | 10 | * Unless required by applicable law or agreed to in writing, software |
Nathan Yonkee |
9:d58e77ebd769 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Nathan Yonkee |
9:d58e77ebd769 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Nathan Yonkee |
9:d58e77ebd769 | 13 | * See the License for the specific language governing permissions and |
Nathan Yonkee |
9:d58e77ebd769 | 14 | * limitations under the License. |
Nathan Yonkee |
9:d58e77ebd769 | 15 | */ |
Nathan Yonkee |
9:d58e77ebd769 | 16 | #ifndef MBED_FILEPATH_H |
Nathan Yonkee |
9:d58e77ebd769 | 17 | #define MBED_FILEPATH_H |
Nathan Yonkee |
9:d58e77ebd769 | 18 | |
Nathan Yonkee |
9:d58e77ebd769 | 19 | #include "platform/platform.h" |
Nathan Yonkee |
9:d58e77ebd769 | 20 | |
Nathan Yonkee |
9:d58e77ebd769 | 21 | #include "platform/FileSystemLike.h" |
Nathan Yonkee |
9:d58e77ebd769 | 22 | #include "platform/FileLike.h" |
Nathan Yonkee |
9:d58e77ebd769 | 23 | |
Nathan Yonkee |
9:d58e77ebd769 | 24 | namespace mbed { |
Nathan Yonkee |
9:d58e77ebd769 | 25 | /** \addtogroup platform */ |
Nathan Yonkee |
9:d58e77ebd769 | 26 | /** @{*/ |
Nathan Yonkee |
9:d58e77ebd769 | 27 | /** |
Nathan Yonkee |
9:d58e77ebd769 | 28 | * \defgroup platform_FilePath FilePath class |
Nathan Yonkee |
9:d58e77ebd769 | 29 | * @{ |
Nathan Yonkee |
9:d58e77ebd769 | 30 | */ |
Nathan Yonkee |
9:d58e77ebd769 | 31 | |
Nathan Yonkee |
9:d58e77ebd769 | 32 | class FileSystem; |
Nathan Yonkee |
9:d58e77ebd769 | 33 | /** Class FilePath |
Nathan Yonkee |
9:d58e77ebd769 | 34 | * |
Nathan Yonkee |
9:d58e77ebd769 | 35 | */ |
Nathan Yonkee |
9:d58e77ebd769 | 36 | |
Nathan Yonkee |
9:d58e77ebd769 | 37 | class FilePath { |
Nathan Yonkee |
9:d58e77ebd769 | 38 | public: |
Nathan Yonkee |
9:d58e77ebd769 | 39 | /** Constructor FilePath |
Nathan Yonkee |
9:d58e77ebd769 | 40 | * |
Nathan Yonkee |
9:d58e77ebd769 | 41 | * @param file_path The path of file. |
Nathan Yonkee |
9:d58e77ebd769 | 42 | */ |
Nathan Yonkee |
9:d58e77ebd769 | 43 | FilePath(const char* file_path); |
Nathan Yonkee |
9:d58e77ebd769 | 44 | |
Nathan Yonkee |
9:d58e77ebd769 | 45 | const char* fileName(void); |
Nathan Yonkee |
9:d58e77ebd769 | 46 | |
Nathan Yonkee |
9:d58e77ebd769 | 47 | bool isFileSystem(void); |
Nathan Yonkee |
9:d58e77ebd769 | 48 | FileSystemLike* fileSystem(void); |
Nathan Yonkee |
9:d58e77ebd769 | 49 | |
Nathan Yonkee |
9:d58e77ebd769 | 50 | bool isFile(void); |
Nathan Yonkee |
9:d58e77ebd769 | 51 | FileLike* file(void); |
Nathan Yonkee |
9:d58e77ebd769 | 52 | bool exists(void); |
Nathan Yonkee |
9:d58e77ebd769 | 53 | |
Nathan Yonkee |
9:d58e77ebd769 | 54 | private: |
Nathan Yonkee |
9:d58e77ebd769 | 55 | const char* file_name; |
Nathan Yonkee |
9:d58e77ebd769 | 56 | FileBase* fb; |
Nathan Yonkee |
9:d58e77ebd769 | 57 | }; |
Nathan Yonkee |
9:d58e77ebd769 | 58 | |
Nathan Yonkee |
9:d58e77ebd769 | 59 | /**@}*/ |
Nathan Yonkee |
9:d58e77ebd769 | 60 | |
Nathan Yonkee |
9:d58e77ebd769 | 61 | /**@}*/ |
Nathan Yonkee |
9:d58e77ebd769 | 62 | |
Nathan Yonkee |
9:d58e77ebd769 | 63 | } // namespace mbed |
Nathan Yonkee |
9:d58e77ebd769 | 64 | |
Nathan Yonkee |
9:d58e77ebd769 | 65 | #endif |