40 lines
772 B
C++
40 lines
772 B
C++
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "PrtCnvStoredTelegram.hpp"
|
|
#include <CoPrtCnv/CoPrtCnvCentralTelegram.hpp>
|
|
|
|
namespace PrtCnv
|
|
{
|
|
class PrtCnvStoredCentralTelegram : public PrtCnv::PrtCnvStoredTelegram
|
|
{
|
|
public:
|
|
PrtCnvStoredCentralTelegram(const std::shared_ptr<N_CoPrtCnv::CoPrtCnvCentralTelegram> &a_centralTelegram,
|
|
const std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> &a_radioTelegram)
|
|
: PrtCnvStoredTelegram(a_radioTelegram)
|
|
, m_CentralTelegram(a_centralTelegram)
|
|
{}
|
|
|
|
int writeCounter() const { return m_WriteCounter; }
|
|
|
|
|
|
|
|
std::shared_ptr<N_CoPrtCnv::CoPrtCnvCentralTelegram> m_CentralTelegram;
|
|
|
|
|
|
uint32_t m_Attempts = 0;
|
|
|
|
|
|
int m_WriteCounter = 0;
|
|
|
|
|
|
bool m_DoResend = false;
|
|
|
|
|
|
bool m_DoDelete = false;
|
|
};
|
|
|
|
}
|