continue refactoring
This commit is contained in:
parent
62682f12de
commit
8ff5cf604f
@ -5,6 +5,8 @@
|
|||||||
#include "serialize/SerialArrayListAdapter.h"
|
#include "serialize/SerialArrayListAdapter.h"
|
||||||
#include "serialize/SerialBufferAdapter.h"
|
#include "serialize/SerialBufferAdapter.h"
|
||||||
#include "serialize/SerialLinkedListAdapter.h"
|
#include "serialize/SerialLinkedListAdapter.h"
|
||||||
|
#include "serialize/SerializableList.h"
|
||||||
|
#include "serialize/SerializableListElement.h"
|
||||||
#include "serialize/SerializeElement.h"
|
#include "serialize/SerializeElement.h"
|
||||||
|
|
||||||
#endif /* FSFW_SERIALIZE_H_ */
|
#endif /* FSFW_SERIALIZE_H_ */
|
||||||
|
@ -48,6 +48,17 @@ class ListElement : public SerializeIF {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
using LE = ListElement<T>;
|
using LE = ListElement<T>;
|
||||||
|
|
||||||
|
using le_u8 = LE<uint8_t>;
|
||||||
|
using le_u16 = LE<uint16_t>;
|
||||||
|
using le_u32 = LE<uint32_t>;
|
||||||
|
using le_u64 = LE<uint64_t>;
|
||||||
|
using le_i8 = LE<int8_t>;
|
||||||
|
using le_i16 = LE<int16_t>;
|
||||||
|
using le_i32 = LE<int32_t>;
|
||||||
|
using le_i64 = LE<int64_t>;
|
||||||
|
using le_f32 = LE<float>;
|
||||||
|
using le_f64 = LE<double>;
|
||||||
|
|
||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
class ListArrayElement : public SerializeIF {
|
class ListArrayElement : public SerializeIF {
|
||||||
public:
|
public:
|
||||||
@ -121,4 +132,21 @@ class ListArrayElement : public SerializeIF {
|
|||||||
template <typename T, size_t N>
|
template <typename T, size_t N>
|
||||||
using LAE = ListArrayElement<T, N>;
|
using LAE = ListArrayElement<T, N>;
|
||||||
|
|
||||||
|
template <size_t N>
|
||||||
|
using lae_u8 = LAE<uint8_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_u16 = LAE<uint16_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_u32 = LAE<uint32_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_i8 = LAE<int8_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_i16 = LAE<int16_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_i32 = LAE<int32_t, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_f32 = LAE<float, N>;
|
||||||
|
template <size_t N>
|
||||||
|
using lae_f64 = LAE<double, N>;
|
||||||
|
|
||||||
} // namespace serialize
|
} // namespace serialize
|
||||||
|
@ -680,12 +680,12 @@ ReturnValue_t TestDevice::getParameter(uint8_t domainId, uint8_t uniqueId,
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
if (not enabled) {
|
if (not enabled) {
|
||||||
PoolReadGuard readHelper(&dataset);
|
// PoolReadGuard readHelper(&dataset);
|
||||||
dataset.testUint8Var.value = 0;
|
dataset.testU8 = 0;
|
||||||
dataset.testUint32Var.value = 0;
|
dataset.testU32 = 0;
|
||||||
dataset.testFloat3Vec.value[0] = 0.0;
|
dataset.testFloat3Vec[0] = 0.0;
|
||||||
dataset.testFloat3Vec.value[0] = 0.0;
|
dataset.testFloat3Vec[0] = 0.0;
|
||||||
dataset.testFloat3Vec.value[1] = 0.0;
|
dataset.testFloat3Vec[1] = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fullInfoPrintout) {
|
if (fullInfoPrintout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user