 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file. 1 #ifndef _Directory_hpp_
2 #define _Directory_hpp_
30 Status read(
char * fileNameBuffer, U32 bufSize);
31 Status read(
char * fileNameBuffer, U32 bufSize, I64& inode);
@ NO_MORE_FILES
Directory stream has no more files.
void close(void)
close directory
@ NOT_OPENED
Directory hasn't been opened yet.
@ NOT_DIR
Path is not a directory.
@ OP_OK
Operation was successful.
bool isOpen(void)
check if file descriptor is open or not.
NATIVE_INT_TYPE getLastError(void)
read back last error code (typically errno)
Status rewind()
rewind directory stream to the beginning
const char * getLastErrorString(void)
get a string of the last error (typically from strerror)
virtual ~Directory()
Destructor. Will close directory if still open.
Status open(const char *dirName)
open directory. Directory must already exist
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
Status read(char *fileNameBuffer, U32 bufSize)
get next filename from directory
@ DOESNT_EXIST
Directory doesn't exist.
@ NO_PERMISSION
No permission to read directory.
Declares ISF basic types.
int NATIVE_INT_TYPE
native integer type declaration