F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
ValidateFile.hpp File Reference

Defines a file class to validate files or generate a file validator file. More...

Go to the source code of this file.

Namespaces

 Os
 
 Os::ValidateFile
 

Macros

#define VFILE_HASH_CHUNK_SIZE   (256)
 

Enumerations

enum  Os::ValidateFile::Status {
  Os::ValidateFile::VALIDATION_OK , Os::ValidateFile::VALIDATION_FAIL , Os::ValidateFile::FILE_DOESNT_EXIST , Os::ValidateFile::FILE_NO_PERMISSION ,
  Os::ValidateFile::FILE_BAD_SIZE , Os::ValidateFile::VALIDATION_FILE_DOESNT_EXIST , Os::ValidateFile::VALIDATION_FILE_NO_PERMISSION , Os::ValidateFile::VALIDATION_FILE_BAD_SIZE ,
  Os::ValidateFile::NO_SPACE , Os::ValidateFile::OTHER_ERROR
}
 

Functions

Status Os::ValidateFile::validate (const char *fileName, const char *hashFileName, Utils::HashBuffer &hashBuffer)
 Validate the contents of a file 'fileName' against its hash. More...
 
Status Os::ValidateFile::validate (const char *fileName, const char *hashFileName)
 stored in 'hashFileName' More...
 
Status Os::ValidateFile::createValidation (const char *fileName, const char *hash, Utils::HashBuffer &hashBuffer)
 
Status Os::ValidateFile::createValidation (const char *fileName, const char *hashFileName)
 in a file 'hashFileName' More...
 

Detailed Description

Defines a file class to validate files or generate a file validator file.

Author
R. Bocchino, K. Dinkel

Definition in file ValidateFile.hpp.

Macro Definition Documentation

◆ VFILE_HASH_CHUNK_SIZE

#define VFILE_HASH_CHUNK_SIZE   (256)

Definition at line 16 of file ValidateFile.hpp.