1
0
forked from fsfw/fsfw

new functions to set all vars read only

This commit is contained in:
2021-03-04 17:27:03 +01:00
parent 043d47e5e4
commit 35825a6561
4 changed files with 40 additions and 2 deletions

View File

@ -109,6 +109,12 @@ public:
LocalPoolDataSetBase(const LocalPoolDataSetBase& otherSet) = delete;
const LocalPoolDataSetBase& operator=(const LocalPoolDataSetBase& otherSet) = delete;
/**
* Helper functions used to set all currently contained variables to read-only.
* It is recommended to call this in set constructors intended to be used
* by data consumers to prevent accidentally changing pool data.
*/
void setAllVariablesReadOnly();
void setValidityBufferGeneration(bool withValidityBuffer);
sid_t getSid() const;