Move page status bits to PageBase superclass

This commit is contained in:
G.K.MacGregor
2020-09-16 12:47:46 +01:00
parent 0f864c7787
commit 959822bd95
4 changed files with 14 additions and 8 deletions

View File

@@ -28,6 +28,8 @@ PageBase::PageBase()
// We use nullptrs to keep track of allocated packets, so initialise them this way
for (int i=0; i<90; i++)
m_packets[i] = nullptr;
for (int i=0; i<8; i++)
m_controlBits[i] = false;
}
PageBase::~PageBase()
@@ -89,6 +91,12 @@ bool PageBase::deletePacket(int packetNumber, int designationCode)
return true;
}
bool PageBase::setControlBit(int bitNumber, bool active)
{
m_controlBits[bitNumber] = active;
return true;
}
PageBase::PacketCodingEnum PageBase::packetCoding(int packetNumber, int designationCode) const
{
switch (packetNumber) {