F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
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 ::
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
}
HASH_EXTENSION_STRING
#define HASH_EXTENSION_STRING
Definition:
CRC32.hpp:25
Fw::StringBase
Definition:
StringType.hpp:23
NATIVE_UINT_TYPE
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
Definition:
BasicTypes.hpp:28
Utils
Definition:
CRCChecker.cpp:20
Hash.hpp
Fw::StringBase::toChar
virtual const char * toChar(void) const =0
Utils::Hash::getFileExtensionLength
static NATIVE_UINT_TYPE getFileExtensionLength()
Definition:
HashCommon.cpp:20
Utils::Hash::getFileExtensionString
static const char * getFileExtensionString()
Definition:
HashCommon.cpp:6
Utils::Hash::addFileExtension
static void addFileExtension(const Fw::StringBase &baseName, Fw::StringBase &extendedName)
Definition:
HashCommon.cpp:12
Fw::StringBase::format
void format(const char *formatString,...)
write formatted string to buffer
Definition:
StringType.cpp:61
Utils
Hash
HashCommon.cpp
Generated by
1.8.17