7 #ifndef Os_FileStatusEnumAc_HPP
8 #define Os_FileStatusEnumAc_HPP
125 return this->
e == e1;
131 return !(*
this == e1);
137 friend std::ostream& operator<<(
163 #if FW_SERIALIZABLE_TO_STRING
C++-compatible configuration header for fprime configuration.
FPP shadow-enum representing Os::File::Status.
bool operator==(T e1) const
Equality operator.
I32 SerialType
The serial representation type.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
bool operator!=(T e1) const
Inequality operator.
FileStatus & operator=(const FileStatus &obj)
Copy assignment operator (object)
@ NOT_SUPPORTED
Kernel or file system does not support operation.
@ INVALID_ARGUMENT
Invalid argument passed in.
@ NOT_OPENED
file hasn't been opened yet
@ BAD_SIZE
Invalid size parameter.
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
@ FILE_EXISTS
file already exist (for CREATE with O_EXCL enabled)
@ NO_PERMISSION
No permission to read/write file.
@ DOESNT_EXIST
File doesn't exist (for read)
@ INVALID_MODE
Mode for file access is invalid for current operation.
@ OP_OK
Operation was successful.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialize raw enum value to SerialType.
T t
For backwards compatibility.
bool isValid() const
Check raw enum value for validity.
FileStatus()
Constructor (default value of OP_OK)
@ SERIALIZED_SIZE
The size of the serial representation.
@ NUM_CONSTANTS
The number of enumerated constants.
FileStatus(const FileStatus &obj)
Copy constructor.
FileStatus(const T e1)
Constructor (user-provided value)
SerializeStatus
forward declaration for string