fsfw/src/fsfw/datapool/DatasetEntryIF.h

40 lines
755 B
C
Raw Normal View History

#ifndef FSFW_DATAPOOL_POOLENTRYIF_H_
#define FSFW_DATAPOOL_POOLENTRYIF_H_
#include <cstdint>
#include <fsfw/introspection/Types.h>
class DatasetEntryIF {
friend class Dataset;
public:
2023-07-10 17:07:39 +02:00
virtual ~DatasetEntryIF() {}
/**
* @brief This method allows to set the valid information of the pool entry.
*/
virtual void setValid(bool isValid) = 0;
/**
* @brief This method allows to set the valid information of the pool entry.
*/
virtual bool getValid() = 0;
protected:
virtual void commit() = 0;
virtual void read() = 0;
virtual void connect(DatasetEntryIF* entry) = 0;
2023-07-18 15:07:21 +02:00
/**
* returns if value and actual value is different
*/
virtual bool changed() = 0;
2023-07-18 15:07:21 +02:00
private:
};
#endif /* FSFW_DATAPOOL_POOLENTRYIF_H_ */