libdrmconf  0.11.0
A library to program DMR radios.
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AnytoneFileReader Class Referenceabstract

This class implements a reader of AnyTone codeplug files. More...

#include <anytone_filereader.hh>

Inheritance diagram for AnytoneFileReader:
Inheritance graph
[legend]

Classes

class  Element
 Base class for all elements in the codeplug file. More...
 

Public Member Functions

virtual ~AnytoneFileReader ()
 Destructor.
 

Static Public Member Functions

static bool read (const QString &filename, Config *config, QString &message)
 Use this static function to read a codeplug from the manufacturer CPS file.
 

Protected Member Functions

 AnytoneFileReader (Config *config, const uint8_t *data, size_t size, QString &message)
 Constructs a configuration from the given codeplug file in memory (data, size).
 
virtual bool read ()
 Read all elements.
 
virtual bool readHeader ()=0
 Read header of file.
 
virtual bool linkHeader ()=0
 Link elements.
 
virtual bool readChannels ()=0
 Read all channels.
 
virtual bool linkChannels ()=0
 Link elements.
 
virtual bool readRadioIDs ()=0
 Read all radio IDs.
 
virtual bool linkRadioIDs ()=0
 Link elements.
 
virtual bool readZones ()=0
 Read all zones.
 
virtual bool linkZones ()=0
 Link elements.
 
virtual bool readScanLists ()=0
 Read all scal lists.
 
virtual bool linkScanLists ()=0
 Link elements.
 
virtual bool readAnalogContacts ()=0
 Read all DTMF contacts.
 
virtual bool linkAnalogContacts ()=0
 Link elements.
 

Protected Attributes

const uint8_t *const _start
 Pointer to the start.
 
const uint8_t * _data
 Pointer to the entire data.
 
size_t _size
 Size of the entire blob.
 
QString & _message
 Error message.
 

Detailed Description

This class implements a reader of AnyTone codeplug files.

Warning
This is mostly incomplete.

The documentation for this class was generated from the following files: