LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
common.h File Reference
#include <tuple>
#include <QtTest>
#include <QSqlError>
#include <oral/oral.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  LC
namespace  LC::Util
namespace  LC::Util::oral

Macros

#define ORAL_FACTORY_SQLITE   1
#define ORAL_FACTORY_POSTGRES   2
#define TOSTRING(n)

Functions

template<typename T, typename = decltype (T {}.AsTuple ())>
auto operator== (const T &left, const T &right)
template<typename T, typename... Args>
char * LC::Util::oral::toString (const PKey< T, Args... > &pkey)
template<typename T, typename TupleType = decltype (T {}.AsTuple ())>
char * toString (const char *name, const T &t)
QSqlDatabase LC::Util::MakeDatabase (const QString &name=":memory:")
template<typename T>
auto LC::Util::PrepareRecords (QSqlDatabase db, int count=3)

Macro Definition Documentation

◆ ORAL_FACTORY_POSTGRES

#define ORAL_FACTORY_POSTGRES   2

Definition at line 19 of file common.h.

◆ ORAL_FACTORY_SQLITE

#define ORAL_FACTORY_SQLITE   1

Definition at line 18 of file common.h.

◆ TOSTRING

#define TOSTRING ( n)
Value:
inline char* toString (const n& rec) { return toString (#n, rec); }
char * toString(const char *name, const T &t)
Definition common.h:55

Definition at line 52 of file common.h.

Function Documentation

◆ operator==()

template<typename T, typename = decltype (T {}.AsTuple ())>
auto operator== ( const T & left,
const T & right )

Definition at line 38 of file common.h.

Referenced by LC::Util::DomChildren().

Here is the caller graph for this function:

◆ toString()

template<typename T, typename TupleType = decltype (T {}.AsTuple ())>
char * toString ( const char * name,
const T & t )

Definition at line 55 of file common.h.

References toString().

Referenced by LC::Util::EncodingConverter::EncodingConverter(), LC::Util::ScreensaverProhibitor::ScreensaverProhibitor(), and toString().

Here is the call graph for this function:
Here is the caller graph for this function: