35 std::ostream& operator<<(std::ostream& os,
const FileStatus& obj) {
69 this->
e =
static_cast<T>(es);
77 #if FW_SERIALIZABLE_TO_STRING
112 s =
"INVALID_ARGUMENT";
124 #elif FW_ENABLE_TEXT_LOGGING
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void format(const CHAR *formatString,...)
write formatted string to buffer
const char * toChar() const
FPP shadow-enum representing Os::File::Status.
I32 SerialType
The serial representation type.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialize raw enum value from SerialType.
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.
bool isValid() const
Check raw enum value for validity.
SerializeStatus
forward declaration for string
@ FW_DESERIALIZE_FORMAT_ERROR
Deserialization data had incorrect values (unexpected data types)
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.