F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ValidatedFile.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ValidatedFile.hpp
3 // \author bocchino
4 // \brief An fprime validated file
5 //
6 // \copyright
7 // Copyright (C) 2017 California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef OS_ValidatedFile_HPP
14 #define OS_ValidatedFile_HPP
15 
16 #include <Fw/FPrimeBasicTypes.hpp>
17 #include "Fw/Types/String.hpp"
18 #include "Os/ValidateFile.hpp"
19 
20 namespace Os {
21 
24  public:
26  ValidatedFile(const char* const fileName
27  );
28 
29  public:
33 
37 
38  public:
41  const Fw::StringBase& getFileName() const;
42 
45  const Fw::StringBase& getHashFileName() const;
46 
49  const Utils::HashBuffer& getHashBuffer() const;
50 
51  private:
53  Fw::String m_fileName;
54 
56  Fw::String m_hashFileName;
57 
59  Utils::HashBuffer m_hashBuffer;
60 };
61 
62 } // namespace Os
63 
64 #endif
A validated file.
const Fw::StringBase & getHashFileName() const
Os::ValidateFile::Status createHashFile()
const Fw::StringBase & getFileName() const
ValidatedFile(const char *const fileName)
Construct a validated file.
Defines a file class to validate files or generate a file validator file.
const Utils::HashBuffer & getHashBuffer() const
A container class for holding a hash buffer.
Definition: HashBuffer.hpp:26
Os::ValidateFile::Status validate()