pro vyuku PSS v Jecne

Committer:
vladvana
Date:
Sun Sep 24 12:31:52 2017 +0000
Revision:
0:23d1f73bf130
podklady pro cviceni z PSS

Who changed what in which revision?

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