F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FileUserInterface.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title Os/Interfaces/FileUserInterface.hpp
3 // \brief types shared by Os::File users and implementations
4 //
5 // Includes no other Os service header, so both Os/File.hpp and the Os::File implementations may include it.
6 // ======================================================================
7 #ifndef OS_INTERFACES_FILEUSERINTERFACE_HPP_
8 #define OS_INTERFACES_FILEUSERINTERFACE_HPP_
9 
10 #include <Fw/FPrimeBasicTypes.hpp>
11 #include <Fw/Types/Assert.hpp>
13 #include <Fw/Types/StringUtils.hpp>
14 #include <Os/Os.hpp>
15 #include <Utils/Hash/Hash.hpp>
16 #include <algorithm>
18 
19 namespace Os {
20 
23 struct FileHandle {};
24 
27  enum Mode {
35  };
36 
37  enum Status {
52  };
53 
58  };
59 
60  enum SeekType {
64  };
65 
66  enum WaitType {
68  WAIT,
70  };
71 };
72 
73 } // namespace Os
74 
75 #endif // OS_INTERFACES_FILEUSERINTERFACE_HPP_
base implementation of FileHandle
No permission to read/write file.
Relative seek from current file offset.
Absolute seek from beginning of file.
File mode not yet selected.
Declares F Prime read-only string base class.
file already exist (for CREATE with O_EXCL enabled)
A catch-all for other errors. Have to look in implementation-specific code.
Path falls outside the configured sandbox directory.
Do NOT overwrite existing files.
Open file for writing; writes don&#39;t return until data is on disk.
Do not wait for read/write operation to finish.
types and constants shared by users of Os::File and by its implementations
file hasn&#39;t been opened yet
Open file for writing and truncates file if it exists, ie same flags as creat()
Mode for file access is invalid for current operation.
Operation was successful.
Overwrite file when it exists and creation was requested.
Kernel or file system does not support operation.
Do wait for read/write operation to finish.
File doesn&#39;t exist (for read)