7 #ifndef Os_FileModeEnumAc_HPP
8 #define Os_FileModeEnumAc_HPP
115 return this->
e == e1;
121 return !(*
this == e1);
127 friend std::ostream& operator<<(
153 #if FW_SERIALIZABLE_TO_STRING
C++-compatible configuration header for fprime configuration.
FPP shadow-enum representing Os::File::Mode.
FileMode()
Constructor (default value of OPEN_NO_MODE)
I32 SerialType
The serial representation type.
@ OPEN_READ
Open file for reading.
@ OPEN_NO_MODE
File mode not yet selected.
@ OPEN_CREATE
Open file for writing and truncates file if it exists, ie same flags as creat()
@ OPEN_APPEND
Open file for appending.
@ OPEN_SYNC_WRITE
Open file for writing; writes don't return until data is on disk.
@ OPEN_WRITE
Open file for writing.
FileMode(const T e1)
Constructor (user-provided value)
bool operator!=(T e1) const
Inequality operator.
T t
For backwards compatibility.
bool operator==(T e1) const
Equality operator.
@ SERIALIZED_SIZE
The size of the serial representation.
@ NUM_CONSTANTS
The number of enumerated constants.
bool isValid() const
Check raw enum value for validity.
FileMode & operator=(const FileMode &obj)
Copy assignment operator (object)
FileMode(const FileMode &obj)
Copy constructor.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
SerializeStatus
forward declaration for string