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

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

#include <Os/Interfaces/DirectoryUserInterface.hpp>

Inheritance diagram for Os::DirectoryUserInterface:
Os::DirectoryCommon< T > Os::DirectoryInterface Os::Posix::Directory::PosixDirectory Os::Stub::Directory::StubDirectory

Public Types

enum  Status {
  OP_OK, DOESNT_EXIST, NO_PERMISSION, NOT_OPENED,
  NOT_DIR, NO_MORE_FILES, FILE_LIMIT, BAD_DESCRIPTOR,
  ALREADY_EXISTS, NOT_SUPPORTED, OTHER_ERROR
}
 
enum  OpenMode { READ, CREATE_IF_MISSING, CREATE_EXCLUSIVE, MAX_OPEN_MODE }
 

Detailed Description

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

Definition at line 22 of file DirectoryUserInterface.hpp.

Member Enumeration Documentation

◆ OpenMode

Enumerator
READ 

Error if directory doesn't exist.

CREATE_IF_MISSING 

Create directory if it doesn't exist.

CREATE_EXCLUSIVE 

Create directory and error if it already exists.

MAX_OPEN_MODE 

Maximum value of OpenMode.

Definition at line 37 of file DirectoryUserInterface.hpp.

◆ Status

Enumerator
OP_OK 

Operation was successful.

DOESNT_EXIST 

Directory doesn't exist.

NO_PERMISSION 

No permission to read directory.

NOT_OPENED 

Directory hasn't been opened yet.

NOT_DIR 

Path is not a directory.

NO_MORE_FILES 

Directory stream has no more files.

FILE_LIMIT 

Directory has more files than can be read.

BAD_DESCRIPTOR 

Directory stream descriptor is invalid.

ALREADY_EXISTS 

Directory already exists.

NOT_SUPPORTED 

Operation is not supported by the current implementation.

OTHER_ERROR 

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

Definition at line 23 of file DirectoryUserInterface.hpp.


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