F´ Flight Software - C/C++ Documentation  devel
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::StringBase& baseName,
14  Fw::StringBase& 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 }
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:56
#define HASH_EXTENSION_STRING
Definition: CRC32.hpp:25
virtual const CHAR * toChar() const =0
void format(const CHAR *formatString,...)
write formatted string to buffer
Definition: StringBase.cpp:56
static NATIVE_UINT_TYPE getFileExtensionLength()
Definition: HashCommon.cpp:20
static const char * getFileExtensionString()
Definition: HashCommon.cpp:6
static void addFileExtension(const Fw::StringBase &baseName, Fw::StringBase &extendedName)
Definition: HashCommon.cpp:12