SDCard version

Fork of gr-peach-opencv-project-sd-card by the do

Committer:
thedo
Date:
Fri Jul 21 01:26:54 2017 +0000
Revision:
167:2ee3e82cb6f5
Parent:
166:240bc5a0f42a
gr-peach-opencv-project-sd-card

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 166:240bc5a0f42a 1 /* mbed Microcontroller Library
thedo 166:240bc5a0f42a 2 * Copyright (c) 2006-2013 ARM Limited
thedo 166:240bc5a0f42a 3 *
thedo 166:240bc5a0f42a 4 * Licensed under the Apache License, Version 2.0 (the "License");
thedo 166:240bc5a0f42a 5 * you may not use this file except in compliance with the License.
thedo 166:240bc5a0f42a 6 * You may obtain a copy of the License at
thedo 166:240bc5a0f42a 7 *
thedo 166:240bc5a0f42a 8 * http://www.apache.org/licenses/LICENSE-2.0
thedo 166:240bc5a0f42a 9 *
thedo 166:240bc5a0f42a 10 * Unless required by applicable law or agreed to in writing, software
thedo 166:240bc5a0f42a 11 * distributed under the License is distributed on an "AS IS" BASIS,
thedo 166:240bc5a0f42a 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
thedo 166:240bc5a0f42a 13 * See the License for the specific language governing permissions and
thedo 166:240bc5a0f42a 14 * limitations under the License.
thedo 166:240bc5a0f42a 15 */
thedo 166:240bc5a0f42a 16 #ifndef MBED_FILEPATH_H
thedo 166:240bc5a0f42a 17 #define MBED_FILEPATH_H
thedo 166:240bc5a0f42a 18
thedo 166:240bc5a0f42a 19 #include "platform/platform.h"
thedo 166:240bc5a0f42a 20
thedo 166:240bc5a0f42a 21 #include "platform/FileSystemLike.h"
thedo 166:240bc5a0f42a 22 #include "platform/FileLike.h"
thedo 166:240bc5a0f42a 23
thedo 166:240bc5a0f42a 24 namespace mbed {
thedo 166:240bc5a0f42a 25 /** \addtogroup platform */
thedo 166:240bc5a0f42a 26
thedo 166:240bc5a0f42a 27 /**
thedo 166:240bc5a0f42a 28 * @class FileSystem
thedo 166:240bc5a0f42a 29 * @ingroup platform
thedo 166:240bc5a0f42a 30 */
thedo 166:240bc5a0f42a 31 class FileSystem;
thedo 166:240bc5a0f42a 32
thedo 166:240bc5a0f42a 33 class FilePath {
thedo 166:240bc5a0f42a 34 public:
thedo 166:240bc5a0f42a 35 FilePath(const char* file_path);
thedo 166:240bc5a0f42a 36
thedo 166:240bc5a0f42a 37 const char* fileName(void);
thedo 166:240bc5a0f42a 38
thedo 166:240bc5a0f42a 39 bool isFileSystem(void);
thedo 166:240bc5a0f42a 40 FileSystemLike* fileSystem(void);
thedo 166:240bc5a0f42a 41
thedo 166:240bc5a0f42a 42 bool isFile(void);
thedo 166:240bc5a0f42a 43 FileLike* file(void);
thedo 166:240bc5a0f42a 44 bool exists(void);
thedo 166:240bc5a0f42a 45
thedo 166:240bc5a0f42a 46 private:
thedo 166:240bc5a0f42a 47 const char* file_name;
thedo 166:240bc5a0f42a 48 FileBase* fb;
thedo 166:240bc5a0f42a 49 };
thedo 166:240bc5a0f42a 50
thedo 166:240bc5a0f42a 51 } // namespace mbed
thedo 166:240bc5a0f42a 52
thedo 166:240bc5a0f42a 53 #endif
thedo 166:240bc5a0f42a 54