type update
This commit is contained in:
parent
3c316218f7
commit
dc72fa938d
@ -1,4 +1,3 @@
|
|||||||
#include "../serialize/SerializeAdapter.h"
|
|
||||||
#include "Type.h"
|
#include "Type.h"
|
||||||
#include "../serialize/SerializeAdapter.h"
|
#include "../serialize/SerializeAdapter.h"
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
#ifndef TYPE_H_
|
#ifndef FSFW_GLOBALFUNCTIONS_TYPE_H_
|
||||||
#define TYPE_H_
|
#define FSFW_GLOBALFUNCTIONS_TYPE_H_
|
||||||
|
|
||||||
#include "../returnvalues/HasReturnvaluesIF.h"
|
#include "../returnvalues/HasReturnvaluesIF.h"
|
||||||
#include "../serialize/SerializeIF.h"
|
#include "../serialize/SerializeIF.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Type definition for CCSDS or ECSS.
|
||||||
|
*/
|
||||||
class Type: public SerializeIF {
|
class Type: public SerializeIF {
|
||||||
public:
|
public:
|
||||||
enum ActualType_t {
|
enum ActualType_t {
|
||||||
@ -56,6 +59,10 @@ struct PodTypeConversion {
|
|||||||
static const Type::ActualType_t type = Type::UNKNOWN_TYPE;
|
static const Type::ActualType_t type = Type::UNKNOWN_TYPE;
|
||||||
};
|
};
|
||||||
template<>
|
template<>
|
||||||
|
struct PodTypeConversion<bool> {
|
||||||
|
static const Type::ActualType_t type = Type::UINT8_T;
|
||||||
|
};
|
||||||
|
template<>
|
||||||
struct PodTypeConversion<uint8_t> {
|
struct PodTypeConversion<uint8_t> {
|
||||||
static const Type::ActualType_t type = Type::UINT8_T;
|
static const Type::ActualType_t type = Type::UINT8_T;
|
||||||
};
|
};
|
||||||
@ -88,4 +95,4 @@ struct PodTypeConversion<double> {
|
|||||||
static const Type::ActualType_t type = Type::DOUBLE;
|
static const Type::ActualType_t type = Type::DOUBLE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* TYPE_H_ */
|
#endif /* FSFW_GLOBALFUNCTIONS_TYPE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user