libdrmconf
0.10.4
A library to program DMR radios.
|
The actual config file parser. More...
#include <csvreader.hh>
Public Member Functions | |
CSVParser (CSVHandler *handler, QObject *parent=nullptr) | |
Constructs a parser using the given handler instance. | |
bool | parse (QTextStream &stream) |
Parses the given text stream. | |
const QString & | errorMessage () const |
Returns the current error message, for example if parse returns false . | |
Protected Member Functions | |
bool | _parse_radio_id (CSVLexer &lexer) |
Internal function to parse DMR IDs. | |
bool | _parse_radio_name (CSVLexer &lexer) |
Internal function to parse radio names. | |
bool | _parse_introline1 (CSVLexer &lexer) |
Internal function to parse intro line 1. | |
bool | _parse_introline2 (CSVLexer &lexer) |
Internal function to parse intro line 2. | |
bool | _parse_mic_level (CSVLexer &lexer) |
Internal function to parse MIC level. | |
bool | _parse_speech (CSVLexer &lexer) |
Internal function to parse Speech flag. | |
bool | _parse_userdb (CSVLexer &lexer) |
Internal function to parse UserDB flag. | |
bool | _parse_contacts (CSVLexer &lexer) |
Internal function to parse a digital contact list. | |
bool | _parse_contact (qint64 id, CSVLexer &lexer) |
Internal function to parse digital contact. | |
bool | _parse_rx_groups (CSVLexer &lexer) |
Internal function to parse an RX group list. | |
bool | _parse_rx_group (qint64 id, CSVLexer &lexer) |
Internal function to parse an RX group. | |
bool | _parse_digital_channels (CSVLexer &lexer) |
Internal function to parse a digital channel list. | |
bool | _parse_digital_channel (qint64 id, CSVLexer &lexer) |
Internal function to parse a digital channel. | |
bool | _parse_analog_channels (CSVLexer &lexer) |
Internal function to parse an analog channel list. | |
bool | _parse_analog_channel (qint64 id, CSVLexer &lexer) |
Internal function to parse an analog channel. | |
bool | _parse_zones (CSVLexer &lexer) |
Internal function to parse a zone list. | |
bool | _parse_zone (qint64 id, CSVLexer &lexer) |
Internal function to parse a zone. | |
bool | _parse_gps_systems (CSVLexer &lexer) |
Internal function to parse a GPS system list. | |
bool | _parse_gps_system (qint64 id, CSVLexer &lexer) |
Internal function to parse a GPS system. | |
bool | _parse_aprs_systems (CSVLexer &lexer) |
Internal function to parse a APRS system list. | |
bool | _parse_aprs_system (qint64 id, CSVLexer &lexer) |
Internal function to parse a APRS system. | |
bool | _parse_scanlists (CSVLexer &lexer) |
Internal function to parse a scanlist list. | |
bool | _parse_scanlist (qint64 id, CSVLexer &lexer) |
Internal function to parse a scanlist. | |
bool | _parse_roaming_zones (CSVLexer &lexer) |
Internal function to parse a roaming zone list. | |
bool | _parse_roaming_zone (qint64 id, CSVLexer &lexer) |
Internal function to parse a zone. | |
Protected Attributes | |
QString | _errorMessage |
Holds the current error message. | |
CSVHandler * | _handler |
The handler instance. | |
The actual config file parser.
This class parses the config file and calls the associated callback functions of a handler instance that is responsible to assemble the final Config
instance.