libdrmconf  0.12.0
A library to program DMR radios.
Static Public Member Functions | Static Protected Member Functions | List of all members
ChirpWriter Class Reference

Implements the chirp writer. More...

#include <chirpformat.hh>

Inheritance diagram for ChirpWriter:
Inheritance graph
[legend]
Collaboration diagram for ChirpWriter:
Collaboration graph
[legend]

Static Public Member Functions

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.
 

Static Protected Member Functions

static bool writeHeader (QTextStream &stream, const ErrorStack &err=ErrorStack())
 Writes the header into the given stream.
 
static bool writeChannel (QTextStream &stream, int i, FMChannel *channel, const ErrorStack &err=ErrorStack())
 Writes a channel into the given stream.
 
static bool encodeFrequency (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
 Writes frequency related columns to the given stream.
 
static bool encodeSubTone (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
 Wirtes sub tone related columns to the given stream.
 
static bool encodeBandwidth (QTextStream &stream, FMChannel *channel, const ErrorStack &err=ErrorStack())
 Writes the bandwidth column to the given stream.
 

Additional Inherited Members

- Protected Types inherited from ChirpFormat
enum class  Duplex {
  None , Positive , Negative , Split ,
  Off
}
 Possible values for the "duplex" column. More...
 
enum class  Mode {
  FM , NFM , WFM , AM ,
  DV , DN
}
 Possible CHIRP channel modes. More...
 
enum class  ToneMode {
  None , Tone , TSQL , TSQL_R ,
  DTCS , DTCS_R , Cross
}
 Possible modes for transmitting and processing sub tones. More...
 
enum class  Polarity { Normal , Reversed }
 Polarity of DCS codes. More...
 
enum class  CrossMode {
  NoneTone , NoneDTCS , ToneNone , ToneTone ,
  ToneDTCS , DTCSNone , DTCSTone , DTCSDTCS
}
 Generic mode for sub tones. More...
 
- Static Protected Attributes inherited from ChirpFormat
static const QSet< QString > _mandatoryHeaders
 Internal set of mandatory headers. More...
 
static const QSet< QString > _knownHeaders
 Internal used set of known headers. More...
 
static const QHash< QString, Duplex_duplexCodes
 Mapping of duplex codes. More...
 
static const QHash< QString, Mode_modeCodes
 Mapping of mode codes. More...
 
static const QHash< QString, ToneMode_toneModeCodes
 Mapping of tone mode codes. More...
 
static const QHash< QString, CrossMode_crossModes
 Mapping of cross mode codes. More...
 

Detailed Description

Implements the chirp writer.


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