The Battle for Wesnoth  1.15.3+dev
Classes | Namespaces | Macros | Typedefs
result_set.hpp File Reference
#include <map>
#include <vector>
#include <mariadb++/bind.hpp>
#include <mariadb++/data.hpp>
#include <mariadb++/date_time.hpp>
#include <mariadb++/decimal.hpp>
#include <mariadb++/last_error.hpp>
Include dependency graph for result_set.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mariadb::statement_data
 
class  mariadb::result_set
 Class used to store query and statement results. More...
 

Namespaces

 mariadb
 

Macros

#define MAKE_GETTER_SIG_STR(nm, rtype, fq)   rtype fq get_##nm(const std::string& name) const
 
#define MAKE_GETTER_SIG_INT(nm, rtype, fq)   rtype fq get_##nm(u32 index) const
 
#define MAKE_GETTER_DECL(nm, rtype)
 
#define MAKE_GETTER(nm, rtype, vtype)
 

Typedefs

typedef std::shared_ptr< statement_data > mariadb::statement_data_ref
 
typedef std::shared_ptr< result_set > mariadb::result_set_ref
 

Macro Definition Documentation

◆ MAKE_GETTER

#define MAKE_GETTER (   nm,
  rtype,
  vtype 
)
Value:
MAKE_GETTER_SIG_STR(nm, rtype, result_set::) { return get_##nm(column_index(name)); } \
MAKE_GETTER_SIG_INT(nm, rtype, result_set::) { \
check_row_fetched(); \
check_type(index, vtype); \
if (index >= m_field_count) throw std::out_of_range("Column index out of range");
#define MAKE_GETTER_SIG_STR(nm, rtype, fq)
Definition: result_set.hpp:22
if(len==0) return stream_ref()
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
Definition: unicode.cpp:71

Definition at line 29 of file result_set.hpp.

Referenced by mariadb::result_set::check_type().

◆ MAKE_GETTER_DECL

#define MAKE_GETTER_DECL (   nm,
  rtype 
)
Value:
MAKE_GETTER_SIG_STR(nm, rtype, ); \
MAKE_GETTER_SIG_INT(nm, rtype, )
#define MAKE_GETTER_SIG_STR(nm, rtype, fq)
Definition: result_set.hpp:22

Definition at line 25 of file result_set.hpp.

◆ MAKE_GETTER_SIG_INT

#define MAKE_GETTER_SIG_INT (   nm,
  rtype,
  fq 
)    rtype fq get_##nm(u32 index) const

Definition at line 23 of file result_set.hpp.

◆ MAKE_GETTER_SIG_STR

#define MAKE_GETTER_SIG_STR (   nm,
  rtype,
  fq 
)    rtype fq get_##nm(const std::string& name) const

Definition at line 22 of file result_set.hpp.