F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HashCommon.cpp
Go to the documentation of this file.
1#include <Utils/Hash/Hash.hpp>
2
3namespace Utils {
4
5 const char* Hash ::
6 getFileExtensionString()
7 {
9 }
10
11 void Hash ::
12 addFileExtension(
13 const Fw::StringBase& baseName,
14 Fw::StringBase& extendedName
15 ) {
16 extendedName.format("%s%s", baseName.toChar(), HASH_EXTENSION_STRING);
17 }
18
20 getFileExtensionLength()
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:52
#define HASH_EXTENSION_STRING
Definition CRC32.hpp:25
void format(const CHAR *formatString,...)
write formatted string to buffer
virtual const CHAR * toChar() const =0