Electroneum
soci::type_conversion< bool > Struct Template Reference

#include <soci_helper.h>

Public Types

typedef int base_type
 

Static Public Member Functions

static void from_base (base_type a_, indicator ind, bool &mi)
 
static void to_base (const bool &mi, base_type &i, indicator &ind)
 

Detailed Description

template<>
struct soci::type_conversion< bool >

Definition at line 62 of file soci_helper.h.

Member Typedef Documentation

◆ base_type

typedef int soci::type_conversion< bool >::base_type

Definition at line 64 of file soci_helper.h.

Member Function Documentation

◆ from_base()

static void soci::type_conversion< bool >::from_base ( base_type  a_,
indicator  ind,
bool mi 
)
inlinestatic

Definition at line 66 of file soci_helper.h.

67  {
68  if (ind == i_null)
69  {
70  mi = false;
71  //throw soci_error("Null value not allowed for this type");
72  }
73  mi = a_? true:false;
74  //mi.set(i);
75  }

◆ to_base()

static void soci::type_conversion< bool >::to_base ( const bool mi,
base_type i,
indicator &  ind 
)
inlinestatic

Definition at line 77 of file soci_helper.h.

78  {
79  i = mi? 1:0;
80  ind = i_ok;
81  }

The documentation for this struct was generated from the following file: