F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FileSystemUserInterface.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Interfaces/FileSystemUserInterface.hpp
3 // \brief types shared by Os::FileSystem users and implementations
4 //
5 // Includes no other Os service header, so both Os/FileSystem.hpp and the Os::FileSystem implementations may include it.
6 // ======================================================================
7 #ifndef OS_INTERFACES_FILESYSTEMUSERINTERFACE_HPP_
8 #define OS_INTERFACES_FILESYSTEMUSERINTERFACE_HPP_
9 
10 #include <Fw/FPrimeBasicTypes.hpp>
11 #include <Fw/Types/Assert.hpp>
12 #include <Os/Os.hpp>
13 #include <algorithm>
14 
15 namespace Os {
16 
17 struct FileSystemHandle {};
18 
21  // Size of file chunks to use for file system operations (e.g. copyFile)
23 
24  enum Status {
35  BUSY,
38  EXDEV_ERROR, // Operation not supported across devices (e.g. rename)
39  OVERFLOW_ERROR, // Operation failed due to overflow in calculation of the result
42  };
43 
44  enum PathType {
45  FILE,
49  };
50 };
51 
52 } // namespace Os
53 
54 #endif // OS_INTERFACES_FILESYSTEMUSERINTERFACE_HPP_
Buffer size is too small to hold full path (for getWorkingDirectory)
PlatformSizeType FwSizeType
static constexpr FwSizeType FILE_SYSTEM_FILE_CHUNK_SIZE
Size of file system chunk.
Path is too long, too many sym links, etc.
types and constants shared by users of Os::FileSystem and by its implementations
Operation is not supported by the current implementation.
Operand is in use by the system or by a process.
Path is not a file or directory, e.g. a socket.
Directory stream has no more files.