~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/structs.h

  • Committer: Monty Taylor
  • Date: 2010-08-02 18:35:08 UTC
  • mto: (1680.2.4 build)
  • mto: This revision was merged to the branch mainline in revision 1682.
  • Revision ID: mordred@inaugust.com-20100802183508-05993aozm52kae21
Removed inltool-update string warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
23
23
#ifndef DRIZZLED_STRUCTS_H
24
24
#define DRIZZLED_STRUCTS_H
25
25
 
26
 
#include <drizzled/base.h>
27
 
#include <drizzled/definitions.h>
28
 
#include <drizzled/lex_string.h>
29
 
#include <drizzled/thr_lock.h>
 
26
#include "drizzled/base.h"
 
27
#include "drizzled/definitions.h"
 
28
#include "drizzled/lex_string.h"
 
29
#include "drizzled/thr_lock.h"
30
30
 
31
31
namespace drizzled
32
32
{
39
39
class Table;
40
40
class Field;
41
41
 
42
 
class KeyPartInfo 
43
 
{       /* Info about a key part */
44
 
public:
 
42
struct KeyPartInfo {    /* Info about a key part */
45
43
  Field *field;
46
44
  unsigned int  offset;                         /* offset in record (from 0) */
47
45
  unsigned int  null_offset;                    /* Offset to null_bit in record */
70
68
};
71
69
 
72
70
 
73
 
class KeyInfo 
74
 
{
75
 
public:
 
71
struct KeyInfo {
76
72
  unsigned int  key_length;             /* Tot length of key */
77
73
  enum  ha_key_alg algorithm;
78
74
  unsigned long flags;                  /* dupp key and pack flags */
95
91
 
96
92
class JoinTable;
97
93
 
98
 
class RegInfo 
99
 
{
100
 
public:         /* Extra info about reg */
 
94
struct RegInfo {                /* Extra info about reg */
101
95
  JoinTable *join_tab;  /* Used by SELECT() */
102
96
  enum thr_lock_type lock_type;         /* How database is used */
103
97
  bool not_exists_optimize;
127
121
#define STATUS_GARBAGE          1
128
122
#define STATUS_NOT_FOUND        2       /* No record in database when needed */
129
123
#define STATUS_NO_PARENT        4       /* Parent record wasn't found */
 
124
#define STATUS_NOT_READ         8       /* Record isn't read */
 
125
#define STATUS_UPDATED          16      /* Record is updated by formula */
130
126
#define STATUS_NULL_ROW         32      /* table->null_row is set */
 
127
#define STATUS_DELETED          64
131
128
 
132
129
#endif /* DRIZZLED_STRUCTS_H */