test test test

Dependencies:   mbed

Committer:
mohamedmoawya
Date:
Mon May 25 19:06:11 2020 +0000
Revision:
0:e4c5e6ec922e
snake game tteest

Who changed what in which revision?

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