~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/uuid_st.h

  • Committer: Monty Taylor
  • Date: 2010-12-26 03:15:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226031544-1cf3raipu53fnmyj
Through page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 * %End-Header%
63
63
 */
64
64
 
65
 
#ifndef DRIZZLED_TYPE_UUID_H
66
 
#define DRIZZLED_TYPE_UUID_H
 
65
#ifndef DRIZZLED_FIELD_UUID_ST_H
 
66
#define DRIZZLED_FIELD_UUID_ST_H
67
67
 
68
68
#include <cstdio>
69
69
#include <iostream>
70
70
 
71
71
namespace drizzled
72
72
{
73
 
namespace type
 
73
namespace field
74
74
{
75
75
 
76
 
class Uuid {
 
76
struct uuid_st {
77
77
        uint32_t        time_low;
78
78
        uint16_t        time_mid;
79
79
        uint16_t        time_hi_and_version;
80
80
        uint16_t        clock_seq;
81
81
        uint8_t node[6];
82
82
 
83
 
public:
84
 
 
85
 
  Uuid() :
 
83
  uuid_st() :
86
84
    time_low(0),
87
85
    time_mid(0),
88
86
    time_hi_and_version(0),
228
226
  static const size_t DISPLAY_BUFFER_LENGTH= DISPLAY_LENGTH+1;
229
227
};
230
228
 
231
 
} /* namespace type */
 
229
} /* namespace field */
232
230
} /* namespace drizzled */
233
231
 
234
 
#endif /* DRIZZLED_TYPE_UUID_H */
 
232
#endif /* DRIZZLED_FIELD_UUID_ST_H */
235
233