F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Os::FileUserInterface Struct Reference

types and constants shared by users of Os::File and by its implementations More...

#include <Os/Interfaces/FileUserInterface.hpp>

Inheritance diagram for Os::FileUserInterface:
Os::FileCommon< Selected::File > Os::FileCommon< T > Os::FileInterface Os::Posix::File::PosixFile Os::Stub::File::StubFile

Public Types

enum  Mode {
  OPEN_NO_MODE, OPEN_READ, OPEN_CREATE, OPEN_WRITE,
  OPEN_SYNC_WRITE, OPEN_APPEND, MAX_OPEN_MODE
}
 
enum  Status {
  OP_OK, DOESNT_EXIST, NO_SPACE, NO_PERMISSION,
  BAD_SIZE, NOT_OPENED, FILE_EXISTS, NOT_SUPPORTED,
  INVALID_MODE, INVALID_ARGUMENT, NO_MORE_RESOURCES, OTHER_ERROR,
  OUTSIDE_SANDBOX, MAX_STATUS
}
 
enum  OverwriteType { NO_OVERWRITE, OVERWRITE, MAX_OVERWRITE_TYPE }
 
enum  SeekType { RELATIVE, ABSOLUTE, MAX_SEEK_TYPE }
 
enum  WaitType { NO_WAIT, WAIT, MAX_WAIT_TYPE }
 

Detailed Description

types and constants shared by users of Os::File and by its implementations

Definition at line 26 of file FileUserInterface.hpp.

Member Enumeration Documentation

◆ Mode

Enumerator
OPEN_NO_MODE 

File mode not yet selected.

OPEN_READ 

Open file for reading.

OPEN_CREATE 

Open file for writing and truncates file if it exists, ie same flags as creat()

OPEN_WRITE 

Open file for writing.

OPEN_SYNC_WRITE 

Open file for writing; writes don't return until data is on disk.

OPEN_APPEND 

Open file for appending.

MAX_OPEN_MODE 

Maximum value of mode.

Definition at line 27 of file FileUserInterface.hpp.

◆ OverwriteType

Enumerator
NO_OVERWRITE 

Do NOT overwrite existing files.

OVERWRITE 

Overwrite file when it exists and creation was requested.

MAX_OVERWRITE_TYPE 

Definition at line 54 of file FileUserInterface.hpp.

◆ SeekType

Enumerator
RELATIVE 

Relative seek from current file offset.

ABSOLUTE 

Absolute seek from beginning of file.

MAX_SEEK_TYPE 

Definition at line 60 of file FileUserInterface.hpp.

◆ Status

Enumerator
OP_OK 

Operation was successful.

DOESNT_EXIST 

File doesn't exist (for read)

NO_SPACE 

No space left.

NO_PERMISSION 

No permission to read/write file.

BAD_SIZE 

Invalid size parameter.

NOT_OPENED 

file hasn't been opened yet

FILE_EXISTS 

file already exist (for CREATE with O_EXCL enabled)

NOT_SUPPORTED 

Kernel or file system does not support operation.

INVALID_MODE 

Mode for file access is invalid for current operation.

INVALID_ARGUMENT 

Invalid argument passed in.

NO_MORE_RESOURCES 

No more available resources.

OTHER_ERROR 

A catch-all for other errors. Have to look in implementation-specific code.

OUTSIDE_SANDBOX 

Path falls outside the configured sandbox directory.

MAX_STATUS 

Maximum value of status.

Definition at line 37 of file FileUserInterface.hpp.

◆ WaitType

Enumerator
NO_WAIT 

Do not wait for read/write operation to finish.

WAIT 

Do wait for read/write operation to finish.

MAX_WAIT_TYPE 

Definition at line 66 of file FileUserInterface.hpp.


The documentation for this struct was generated from the following file: