11 #include "errorstack.hh"
108 static bool processLine(
const QStringList &header,
const QStringList &line,
Implements the CHIRP CSV reader.
Definition: chirpformat.hh:94
static bool read(QTextStream &stream, Config *config, const ErrorStack &err=ErrorStack())
Reads a CHIRP CSV file from the given stream and updates the given configuration.
Definition: chirpformat.cc:66
static bool processPolarity(const QString &code, Polarity &txPol, Polarity &rxPol, const ErrorStack &err=ErrorStack())
Helper function to parse a polarity column.
Definition: chirpformat.cc:351
static bool readLine(QTextStream &stream, QStringList &list, const ErrorStack &err=ErrorStack())
Internal used method to read a line from the given stream.
Definition: chirpformat.cc:118
static bool processToneMode(const QString &code, ToneMode &mode, const ErrorStack &err=ErrorStack())
Helper function to parse a tone mode column.
Definition: chirpformat.cc:341
static bool processDuplex(const QString &code, Duplex &duplex, const ErrorStack &err=ErrorStack())
Helper function to parse a duplex column.
Definition: chirpformat.cc:321
static bool processLine(const QStringList &header, const QStringList &line, Config *config, const ErrorStack &err=ErrorStack())
Line parser, the header must be read before and passed to this method.
Definition: chirpformat.cc:148
static bool processMode(const QString &code, Mode &mode, const ErrorStack &err=ErrorStack())
Helper function to parse a mode column.
Definition: chirpformat.cc:331
static bool processCrossMode(const QString &code, CrossMode &crossMode, const ErrorStack &err=ErrorStack())
Helper function to parse a cross mode column.
Definition: chirpformat.cc:380
Implements the chirp writer.
Definition: chirpformat.hh:127
static bool writeChannel(QTextStream &stream, int i, FMChannel *channel, const ErrorStack &err=ErrorStack())
Writes a channel into the given stream.
Definition: chirpformat.cc:429
static bool writeHeader(QTextStream &stream, const ErrorStack &err=ErrorStack())
Writes the header into the given stream.
Definition: chirpformat.cc:416
static bool encodeFrequency(QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
Writes frequency related columns to the given stream.
Definition: chirpformat.cc:452
static bool encodeSubTone(QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
Wirtes sub tone related columns to the given stream.
Definition: chirpformat.cc:470
static bool write(QTextStream &stream, Config *config, const ErrorStack &err=ErrorStack())
Writes the (FM channels) of the given codeplug as a CHIRP CSV file into the given stream.
Definition: chirpformat.cc:395
static bool encodeBandwidth(QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
Writes the bandwidth column to the given stream.
Definition: chirpformat.cc:533
The config class, representing the codeplug configuration.
Definition: config.hh:70
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Extension to the AnalogChannel class to implement an analog FM channel.
Definition: channel.hh:210