The Battle for Wesnoth
1.15.12+dev
server
common
resultsets
tournaments.hpp
Go to the documentation of this file.
1
/*
2
Part of the Battle for Wesnoth Project https://www.wesnoth.org/
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY.
10
11
See the COPYING file for more details.
12
*/
13
14
#pragma once
15
16
#include "mariadb++/result_set.hpp"
17
18
#include "
server/common/resultsets/rs_base.hpp
"
19
20
#include <vector>
21
22
class
tournaments
:
public
rs_base
23
{
24
struct
data
25
{
26
std::string
title
;
27
std::string
status
;
28
std::string
url
;
29
};
30
31
public
:
32
void
read
(mariadb::result_set_ref rslt);
33
std::string
str
();
34
35
private
:
36
std::vector<data>
rows
;
37
};
tournaments::data
Definition:
tournaments.hpp:24
tournaments::data::url
std::string url
Definition:
tournaments.hpp:28
rs_base
Definition:
rs_base.hpp:18
tournaments::data::status
std::string status
Definition:
tournaments.hpp:27
tournaments
Definition:
tournaments.hpp:22
tournaments::str
std::string str()
tournaments::read
void read(mariadb::result_set_ref rslt)
tournaments::data::title
std::string title
Definition:
tournaments.hpp:26
tournaments::rows
std::vector< data > rows
Definition:
tournaments.hpp:36
rs_base.hpp
Generated by
1.8.13