MythTV  master
Macros
dtvconfparser.cpp File Reference
#include <QTextStream>
#include <QFile>
#include "mythcontext.h"
#include "mythdbcon.h"
#include "mythlogging.h"
#include "dtvconfparser.h"
#include "channelutil.h"
Include dependency graph for dtvconfparser.cpp:

Go to the source code of this file.

Macros

#define PARSE_SKIP(VAR)
 
#define PARSE_CONF(VAR)
 
#define PARSE_STR(VAR)
 
#define PARSE_UINT(VAR)
 
#define PARSE_UINT_1000(VAR)
 

Macro Definition Documentation

◆ PARSE_SKIP

#define PARSE_SKIP (   VAR)
Value:
do { \
if (it == tokens.end()) return false; ++it; } while(false)

Definition at line 43 of file dtvconfparser.cpp.

◆ PARSE_CONF

#define PARSE_CONF (   VAR)
Value:
do { \
if (it == tokens.end() || !(VAR).ParseConf(*it++)) \
return false; } while(false)

Definition at line 46 of file dtvconfparser.cpp.

◆ PARSE_STR

#define PARSE_STR (   VAR)
Value:
do { \
if (it != tokens.end()) (VAR) = *it++; else return false; } while(false)

Definition at line 50 of file dtvconfparser.cpp.

◆ PARSE_UINT

#define PARSE_UINT (   VAR)
Value:
do { \
if (it != tokens.end()) \
(VAR) = (*it++).toUInt(); else return false; } while(false)

Definition at line 53 of file dtvconfparser.cpp.

◆ PARSE_UINT_1000

#define PARSE_UINT_1000 (   VAR)
Value:
do { \
if (it != tokens.end()) \
(VAR) = (*it++).toUInt() * 1000ULL; else return false; } while(false)

Definition at line 57 of file dtvconfparser.cpp.