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
PolyDbImpl.hpp
Go to the documentation of this file.
1
12#ifndef POLYDBIMPL_HPP_
13#define POLYDBIMPL_HPP_
14
15#include <Svc/PolyDb/PolyDbComponentAc.hpp>
16#include <Fw/Types/PolyType.hpp>
17#include <PolyDbImplCfg.hpp>
18
19namespace Svc {
20
30
31 class PolyDbImpl : public PolyDbComponentBase {
32 public:
39
40 PolyDbImpl(const char* name);
41
47
48 void init(NATIVE_INT_TYPE instance);
49
54
55 virtual ~PolyDbImpl();
56 protected:
57 private:
58
69
70 void getValue_handler(NATIVE_INT_TYPE portNum, U32 entry, MeasurementStatus &status, Fw::Time &time, Fw::PolyType &val);
71
81
82 void setValue_handler(NATIVE_INT_TYPE portNum, U32 entry, MeasurementStatus &status, Fw::Time &time, Fw::PolyType &val);
83
90
91 struct t_dbStruct {
92 MeasurementStatus status;
93 Fw::PolyType val;
94 Fw::Time time;
95 } m_db[POLYDB_NUM_DB_ENTRIES];
96
97 };
98}
99
100#endif /* POLYDBIMPL_HPP_ */
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
PolyDb Component Class.
virtual ~PolyDbImpl()
PolyDbImpl destructor.
void init(NATIVE_INT_TYPE instance)
PolyDbImpl initialization.