~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/structs.h

  • Committer: Brian Aker
  • Date: 2011-11-18 16:11:02 UTC
  • mto: (2463.1.1 drizzle-include)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: brian@tangent.org-20111118161102-d1mbswn88iwc2iv1
Pass through refactoring.

Never throw exceptions from libraries. You can not have the assumption that in a driver that the above language can handle this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
{
70
70
public:
71
71
  uint16_t error_code;
72
 
  int options;
 
72
  struct options_t {
 
73
    bool is_allocated;
 
74
    bool is_non_blocking;
 
75
    bool is_free_objects;
 
76
    bool is_assert_dangling;
 
77
 
 
78
    options_t() :
 
79
      is_allocated(false),
 
80
      is_non_blocking(false),
 
81
      is_free_objects(false),
 
82
      is_assert_dangling(false)
 
83
    { }
 
84
  } options;
73
85
  drizzle_verbose_t verbose;
74
86
  uint32_t con_count;
75
87
  uint32_t pfds_size;
92
104
 
93
105
  drizzle_st() :
94
106
    error_code(0),
95
 
    options(DRIZZLE_NONE),
 
107
    options(),
96
108
    verbose(DRIZZLE_VERBOSE_ERROR),
97
109
    con_count(0),
98
110
    pfds_size(0),
228
240
 */
229
241
class drizzle_query_st
230
242
{
 
243
private:
231
244
public:
232
245
  drizzle_st *drizzle;
233
246
  drizzle_query_st *next;