Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
extractors.hpp File Reference
#include <concepts>
#include <sqlite3.h>

Go to the source code of this file.

Macros

#define ATLASGAMEMANAGER_EXTRACTORS_HPP
 

Functions

template<std::uint64_t, typename T>
void extract (sqlite3_stmt *, T &)=delete
 
template<std::uint64_t index, typename T>
requires std::is_integral_v< T >
void extract (sqlite3_stmt *stmt, T &t) noexcept
 
template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::u8string >
void extract (sqlite3_stmt *stmt, std::u8string &t) noexcept
 
template<std::uint64_t index, typename T>
requires std::is_same_v< T, QString >
void extract (sqlite3_stmt *stmt, QString &t) noexcept
 
template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::filesystem::path >
void extract (sqlite3_stmt *stmt, std::filesystem::path &t) noexcept
 
template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::string >
void extract (sqlite3_stmt *stmt, std::string &t) noexcept
 
template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::vector< std::byte > >
void extract (sqlite3_stmt *stmt, std::vector< std::byte > &t) noexcept
 
template<std::uint64_t index, typename... Args>
void extractRow (sqlite3_stmt *stmt, std::tuple< Args... > &tpl) noexcept
 

Macro Definition Documentation

◆ ATLASGAMEMANAGER_EXTRACTORS_HPP

#define ATLASGAMEMANAGER_EXTRACTORS_HPP

Function Documentation

◆ extract() [1/7]

template<std::uint64_t, typename T>
void extract ( sqlite3_stmt * stmt,
T & t )
deletenoexcept

◆ extract() [2/7]

template<std::uint64_t index, typename T>
requires std::is_same_v< T, QString >
void extract ( sqlite3_stmt * stmt,
QString & t )
noexcept

◆ extract() [3/7]

template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::filesystem::path >
void extract ( sqlite3_stmt * stmt,
std::filesystem::path & t )
noexcept

◆ extract() [4/7]

template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::string >
void extract ( sqlite3_stmt * stmt,
std::string & t )
noexcept

◆ extract() [5/7]

template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::u8string >
void extract ( sqlite3_stmt * stmt,
std::u8string & t )
noexcept

◆ extract() [6/7]

template<std::uint64_t index, typename T>
requires std::is_same_v< T, std::vector< std::byte > >
void extract ( sqlite3_stmt * stmt,
std::vector< std::byte > & t )
noexcept

◆ extract() [7/7]

template<std::uint64_t index, typename T>
requires std::is_integral_v< T >
void extract ( sqlite3_stmt * stmt,
T & t )
deletenoexcept

◆ extractRow()

template<std::uint64_t index, typename... Args>
void extractRow ( sqlite3_stmt * stmt,
std::tuple< Args... > & tpl )
noexcept