 |
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.
13 #ifndef _ValidateFile_hpp_
14 #define _ValidateFile_hpp_
16 #define VFILE_HASH_CHUNK_SIZE (256)
22 namespace ValidateFile {
@ VALIDATION_FILE_BAD_SIZE
Invalid size parameter.
@ VALIDATION_OK
The validation of the file passed.
@ FILE_DOESNT_EXIST
File doesn't exist (for read)
@ OTHER_ERROR
A catch-all for other errors. Have to look in implementation-specific code.
@ VALIDATION_FILE_DOESNT_EXIST
Validation file doesn't exist (for read)
Status createValidation(const char *fileName, const char *hash, Utils::HashBuffer &hashBuffer)
@ FILE_BAD_SIZE
Invalid size parameter.
An container class for holding a hash buffer.
@ NO_SPACE
No space left on the device for writing.
@ VALIDATION_FILE_NO_PERMISSION
No permission to read/write file.
Status validate(const char *fileName, const char *hashFileName, Utils::HashBuffer &hashBuffer)
Validate the contents of a file 'fileName' against its hash.
@ VALIDATION_FAIL
The validation of the file did not pass.
@ FILE_NO_PERMISSION
No permission to read/write file.