LeechCraft
0.6.70-17335-ge406ffdcaf
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
simplerecord.h
Go to the documentation of this file.
1
/**********************************************************************
2
* LeechCraft - modular cross-platform feature rich internet client.
3
* Copyright (C) 2006-2014 Georg Rudoy
4
*
5
* Distributed under the Boost Software License, Version 1.0.
6
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7
**********************************************************************/
8
9
#pragma once
10
11
#include "
common.h
"
12
13
using
LC::operator
""
_ct;
14
15
struct
SimpleRecord
16
{
17
lco::PKey<int, lco::NoAutogen>
ID_
;
18
QString
Value_
;
19
20
constexpr
static
auto
ClassName
=
"SimpleRecord"
_ct;
21
22
auto
AsTuple
()
const
23
{
24
return
std::tie (
ID_
,
Value_
);
25
}
26
};
27
28
ORAL_ADAPT_STRUCT
(
SimpleRecord
,
29
ID_,
30
Value_)
31
32
TOSTRING
(
SimpleRecord
)
common.h
TOSTRING
#define TOSTRING(n)
Definition
common.h:52
ORAL_ADAPT_STRUCT
#define ORAL_ADAPT_STRUCT(sname,...)
Definition
oral.h:52
LC::Util::oral::PKey
Definition
oraltypes.h:67
SimpleRecord
Definition
simplerecord.h:16
SimpleRecord::ClassName
static constexpr auto ClassName
Definition
simplerecord.h:20
SimpleRecord::ID_
lco::PKey< int, lco::NoAutogen > ID_
Definition
simplerecord.h:17
SimpleRecord::Value_
QString Value_
Definition
simplerecord.h:18
SimpleRecord::AsTuple
auto AsTuple() const
Definition
simplerecord.h:22
src
util
db
tests
simplerecord.h
Generated by
1.13.2