F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
HashCommon.cpp
Go to the documentation of this file.
1
#include <
Utils/Hash/Hash.hpp
>
2
3
namespace
Utils
{
4
5
const
char
* Hash ::
6
getFileExtensionString()
7
{
8
return
HASH_EXTENSION_STRING
;
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
19
NATIVE_UINT_TYPE
Hash ::
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
}
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
HASH_EXTENSION_STRING
#define HASH_EXTENSION_STRING
Definition
CRC32.hpp:25
Hash.hpp
Fw::StringBase
Definition
StringType.hpp:23
Fw::StringBase::format
void format(const CHAR *formatString,...)
write formatted string to buffer
Definition
StringType.cpp:60
Fw::StringBase::toChar
virtual const CHAR * toChar() const =0
Utils
Definition
CRCChecker.cpp:20
Utils
Hash
HashCommon.cpp
Generated by
1.9.7