F´ Flight Software - C/C++ Documentation  NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
HashCommon.cpp
Go to the documentation of this file.
1 #include <Utils/Hash/Hash.hpp>
2 
3 namespace Utils {
4 
5  const char* Hash ::
7  {
9  }
10 
11  void Hash ::
13  const Fw::EightyCharString& baseName,
14  Fw::EightyCharString& extendedName
15  ) {
16  extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
17  }
18 
21  {
22  // Size of returns the size including the '\0' character.
23  // We want to return just the size of the string.
24  return sizeof(HASH_EXTENSION_STRING) - 1;
25  }
26 
27 }
HASH_EXTENSION_STRING
#define HASH_EXTENSION_STRING
Definition: CRC32.hpp:25
Fw::EightyCharString::toChar
const char * toChar(void) const
gets char buffer
Definition: EightyCharString.cpp:34
Utils::Hash::addFileExtension
static void addFileExtension(const Fw::EightyCharString &baseName, Fw::EightyCharString &extendedName)
Definition: HashCommon.cpp:12
Utils
Definition: CRCChecker.cpp:20
Fw::EightyCharString
Definition: EightyCharString.hpp:10
Utils::Hash::getFileExtensionLength
static NATIVE_UINT_TYPE getFileExtensionLength(void)
Definition: HashCommon.cpp:20
Utils::Hash::getFileExtensionString
static const char * getFileExtensionString(void)
Definition: HashCommon.cpp:6
Hash.hpp
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition: BasicTypes.hpp:30
Fw::StringBase::format
void format(const char *formatString,...)
write formatted string to buffer
Definition: StringType.cpp:61