MythTV  master
Macros
filesysteminfo.cpp File Reference
#include <unistd.h>
#include <cstdlib>
#include "compat.h"
#include <QList>
#include <QString>
#include <QStringList>
#include <utility>
#include "filesysteminfo.h"
#include "mythcoreutil.h"
Include dependency graph for filesysteminfo.cpp:

Go to the source code of this file.

Macros

#define INT_TO_LIST(x)   do { list << QString::number(x); } while (false)
 
#define STR_TO_LIST(x)   do { list << (x); } while (false)
 
#define NEXT_STR()
 
#define INT_FROM_LIST(x)   do { NEXT_STR(); (x) = ts.toLongLong(); } while (false)
 
#define ENUM_FROM_LIST(x, y)   do { NEXT_STR(); (x) = ((y)ts.toInt()); } while (false)
 
#define STR_FROM_LIST(x)   do { NEXT_STR(); (x) = ts; } while (false)
 
#define LOC   QString("FileSystemInfo: ")
 

Macro Definition Documentation

◆ INT_TO_LIST

#define INT_TO_LIST (   x)    do { list << QString::number(x); } while (false)

Definition at line 30 of file filesysteminfo.cpp.

◆ STR_TO_LIST

#define STR_TO_LIST (   x)    do { list << (x); } while (false)

Definition at line 31 of file filesysteminfo.cpp.

◆ NEXT_STR

#define NEXT_STR ( )
Value:
do { if (it == listend) \
{ \
LOG(VB_GENERAL, LOG_ALERT, listerror); \
clear(); \
return false; \
} \
ts = *it++; } while (false)

Definition at line 34 of file filesysteminfo.cpp.

◆ INT_FROM_LIST

#define INT_FROM_LIST (   x)    do { NEXT_STR(); (x) = ts.toLongLong(); } while (false)

Definition at line 41 of file filesysteminfo.cpp.

◆ ENUM_FROM_LIST

#define ENUM_FROM_LIST (   x,
 
)    do { NEXT_STR(); (x) = ((y)ts.toInt()); } while (false)

Definition at line 42 of file filesysteminfo.cpp.

◆ STR_FROM_LIST

#define STR_FROM_LIST (   x)    do { NEXT_STR(); (x) = ts; } while (false)

Definition at line 43 of file filesysteminfo.cpp.

◆ LOC

#define LOC   QString("FileSystemInfo: ")

Definition at line 45 of file filesysteminfo.cpp.