~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Tim Penhey
  • Date: 2010-01-20 02:39:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1275.
  • Revision ID: tim.penhey@canonical.com-20100120023901-8teeunid6gwlthzx
Add in a rot 13 function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "drizzled/function/time/date.h"
24
24
#include "drizzled/temporal.h"
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
/* Abstract CURDATE function. See also Item_func_curtime. */
30
27
class Item_func_curdate :public Item_date
31
28
{
32
29
protected:
33
30
  DRIZZLE_TIME ltime;
34
 
  Date cached_temporal;
 
31
  drizzled::Date cached_temporal;
35
32
public:
36
33
  Item_func_curdate() :Item_date() {}
37
34
  void fix_length_and_dec();
38
35
  /**
39
36
   * All functions which inherit from Item_date must implement
40
37
   * their own get_temporal() method, which takes a supplied
41
 
   * Date reference and populates it with a correct
 
38
   * drizzled::Date reference and populates it with a correct
42
39
   * date based on the semantics of the function.
43
40
   *
44
41
   * For CURDATE() and sisters, there is no argument, and we 
47
44
   * Always returns true, since a Date can always be constructed
48
45
   * from a time_t
49
46
   *
50
 
   * @param Reference to a Date to populate
 
47
   * @param Reference to a drizzled::Date to populate
51
48
   */
52
 
  bool get_temporal(Date &temporal);
 
49
  bool get_temporal(drizzled::Date &temporal);
53
50
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time)=0;
54
51
};
55
52
 
69
66
  void store_now_in_TIME(DRIZZLE_TIME *now_time);
70
67
};
71
68
 
72
 
} /* namespace drizzled */
73
 
 
74
69
#endif /* DRIZZLED_FUNCTION_TIME_CURDATE_H */