~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/tztime.h

Remove PLUGIN and MODULES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_TZTIME_H
22
22
#define DRIZZLED_TZTIME_H
23
23
 
 
24
#if TIME_WITH_SYS_TIME
 
25
# include <sys/time.h>
 
26
# include <time.h>
 
27
#else
 
28
# if HAVE_SYS_TIME_H
 
29
#  include <sys/time.h>
 
30
# else
 
31
#  include <time.h>
 
32
# endif
 
33
#endif
 
34
 
 
35
#include "drizzled/memory/sql_alloc.h"
 
36
 
 
37
class String;
 
38
typedef struct st_drizzle_time DRIZZLE_TIME;
 
39
 
24
40
/**
25
41
  This class represents abstract time zone and provides
26
42
  basic interface for DRIZZLE_TIME <-> time_t conversion.
27
43
  Actual time zones which are specified by DB, or via offset
28
44
  or use system functions are its descendants.
29
45
*/
30
 
class Time_zone: public Sql_alloc
 
46
class Time_zone: public drizzled::memory::SqlAlloc
31
47
{
32
48
public:
33
49
  Time_zone() {}                              /* Remove gcc warning */
38
54
    falls into spring time-gap (or lefts it untouched otherwise).
39
55
  */
40
56
  virtual time_t TIME_to_gmt_sec(const DRIZZLE_TIME *t,
41
 
                                    bool *in_dst_time_gap) const = 0;
 
57
                                 bool *in_dst_time_gap) const = 0;
42
58
  /**
43
59
    Converts time in time_t representation to local time in
44
60
    broken down DRIZZLE_TIME representation.
53
69
 
54
70
  /**
55
71
    We need this only for surpressing warnings, objects of this type are
56
 
    allocated on MEM_ROOT and should not require destruction.
 
72
    allocated on drizzled::memory::Root and should not require destruction.
57
73
  */
58
74
  virtual ~Time_zone() {};
59
75
};