Move page status bits to PageBase superclass
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user