F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
FileSystem.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Stub/File.cpp
3 // \brief stub implementation for Os::File
4 // ======================================================================
5 #include "Os/Stub/FileSystem.hpp"
6 
7 namespace Os {
8 namespace Stub {
9 namespace FileSystem {
10 
12  return Status::NOT_SUPPORTED;
13 }
14 
16  return Status::NOT_SUPPORTED;
17 }
18 
19 StubFileSystem::Status StubFileSystem::_rename(const char* originPath, const char* destPath) {
20  return Status::NOT_SUPPORTED;
21 }
22 
24  return Status::NOT_SUPPORTED;
25 }
26 
28  return Status::NOT_SUPPORTED;
29 }
30 
31 StubFileSystem::Status StubFileSystem::_getFreeSpace(const char* path, FwSizeType& totalBytes, FwSizeType& freeBytes) {
32  return Status::NOT_SUPPORTED;
33 }
34 
36  return &this->m_handle;
37 }
38 
39 } // namespace File
40 } // namespace Stub
41 } // namespace Os
PlatformSizeType FwSizeType
Definition: FpConfig.h:35
FileSystem class.
Definition: FileSystem.hpp:117
Status _removeDirectory(const char *path) override
Remove a directory at the specified path.
Definition: FileSystem.cpp:11
Status _rename(const char *sourcePath, const char *destPath) override
Rename a file from source to destination.
Definition: FileSystem.cpp:19
Status _getFreeSpace(const char *path, FwSizeType &totalBytes, FwSizeType &freeBytes) override
Get filesystem free and total space in bytes on the filesystem containing the specified path.
Definition: FileSystem.cpp:31
Status _removeFile(const char *path) override
Remove a file at the specified path.
Definition: FileSystem.cpp:15
Status _getWorkingDirectory(char *path, FwSizeType bufferSize) override
Get the current working directory.
Definition: FileSystem.cpp:23
Status _changeWorkingDirectory(const char *path) override
Change the current working directory to the specified path.
Definition: FileSystem.cpp:27
FileSystemHandle * getHandle() override
returns the raw fileSystem handle
Definition: FileSystem.cpp:35