1 #ifndef ANYTONEFILEREADER_HH
2 #define ANYTONEFILEREADER_HH
25 virtual size_t size()
const = 0;
71 static bool read(
const QString &filename,
Config *config, QString &message);
Base class for all elements in the codeplug file.
Definition: anytone_filereader.hh:16
virtual size_t size() const =0
Returns the storage size of the element.
virtual ~Element()
Destructor.
Definition: anytone_filereader.cc:28
const uint8_t * _data
Pointer to the actual element.
Definition: anytone_filereader.hh:29
Element(const uint8_t *ptr)
Hidden constructor.
Definition: anytone_filereader.cc:22
This class implements a reader of AnyTone codeplug files.
Definition: anytone_filereader.hh:12
virtual ~AnytoneFileReader()
Destructor.
Definition: anytone_filereader.cc:42
QString & _message
Error message.
Definition: anytone_filereader.hh:81
virtual bool readHeader()=0
Read header of file.
virtual bool readAnalogContacts()=0
Read all DTMF contacts.
const uint8_t * _data
Pointer to the entire data.
Definition: anytone_filereader.hh:77
virtual bool readRadioIDs()=0
Read all radio IDs.
virtual bool linkAnalogContacts()=0
Link elements.
virtual bool linkScanLists()=0
Link elements.
virtual bool read()
Read all elements.
Definition: anytone_filereader.cc:47
virtual bool readChannels()=0
Read all channels.
virtual bool readZones()=0
Read all zones.
virtual bool linkChannels()=0
Link elements.
size_t _size
Size of the entire blob.
Definition: anytone_filereader.hh:79
virtual bool linkRadioIDs()=0
Link elements.
AnytoneFileReader(Config *config, const uint8_t *data, size_t size, QString &message)
Constructs a configuration from the given codeplug file in memory (data, size).
Definition: anytone_filereader.cc:36
const uint8_t *const _start
Pointer to the start.
Definition: anytone_filereader.hh:75
virtual bool linkHeader()=0
Link elements.
virtual bool linkZones()=0
Link elements.
virtual bool readScanLists()=0
Read all scal lists.
The config class, representing the codeplug configuration.
Definition: config.hh:68