The Battle for Wesnoth  1.15.3+dev
Classes | Namespaces | Macros | Typedefs | Functions
account.hpp File Reference
#include <string>
#include <map>
#include <mariadb++/types.hpp>
#include <mysql.h>
Include dependency graph for account.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mariadb::option_arg
 
class  mariadb::account
 Class used to store account and connection information used by mariadb::connection when connecting. More...
 

Namespaces

 mariadb
 

Macros

#define MAKE_OPTION_ARG(name, type, return_value)
 

Typedefs

typedef std::shared_ptr< account > mariadb::account_ref
 

Functions

 mariadb::MAKE_OPTION_ARG (bool, bool, &m_value)
 
 mariadb::MAKE_OPTION_ARG (int, int, &m_value)
 
 mariadb::MAKE_OPTION_ARG (string, std::string, m_value.c_str())
 

Macro Definition Documentation

◆ MAKE_OPTION_ARG

#define MAKE_OPTION_ARG (   name,
  type,
  return_value 
)
Value:
class option_arg_##name : public option_arg { \
public: \
explicit option_arg_##name(const type &arg) : m_value(arg) { } \
const void *value() override { return return_value; } \
protected: \
type m_value; \
}

Definition at line 28 of file account.hpp.