~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/curdate.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 14:32:36 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328143236-4ge1d793iqaktfq0
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTION_TIME_CURDATE_H
21
 
#define DRIZZLED_FUNCTION_TIME_CURDATE_H
 
20
#pragma once
22
21
 
23
 
#include "drizzled/function/time/date.h"
24
 
#include "drizzled/temporal.h"
 
22
#include <drizzled/function/time/date.h>
 
23
#include <drizzled/temporal.h>
25
24
 
26
25
namespace drizzled
27
26
{
30
29
class Item_func_curdate :public Item_date
31
30
{
32
31
protected:
33
 
  DRIZZLE_TIME ltime;
 
32
  type::Time ltime;
34
33
  Date cached_temporal;
35
34
public:
36
35
  Item_func_curdate() :Item_date() {}
50
49
   * @param Reference to a Date to populate
51
50
   */
52
51
  bool get_temporal(Date &temporal);
53
 
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time)=0;
 
52
  virtual void store_now_in_TIME(type::Time *now_time)=0;
54
53
};
55
54
 
56
55
class Item_func_curdate_local :public Item_func_curdate
58
57
public:
59
58
  Item_func_curdate_local() :Item_func_curdate() {}
60
59
  const char *func_name() const { return "curdate"; }
61
 
  void store_now_in_TIME(DRIZZLE_TIME *now_time);
 
60
  void store_now_in_TIME(type::Time *now_time);
62
61
};
63
62
 
64
63
class Item_func_curdate_utc :public Item_func_curdate
66
65
public:
67
66
  Item_func_curdate_utc() :Item_func_curdate() {}
68
67
  const char *func_name() const { return "utc_date"; }
69
 
  void store_now_in_TIME(DRIZZLE_TIME *now_time);
 
68
  void store_now_in_TIME(type::Time *now_time);
70
69
};
71
70
 
72
71
} /* namespace drizzled */
73
72
 
74
 
#endif /* DRIZZLED_FUNCTION_TIME_CURDATE_H */