~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2009-10-06 19:40:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1184.
  • Revision ID: mordred@inaugust.com-20091006194045-ojptaq2sx6ck6q63
No more server_includes.h in headers.

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
20
20
#ifndef DRIZZLED_FUNCTION_TIME_LAST_DAY_H
21
21
#define DRIZZLED_FUNCTION_TIME_LAST_DAY_H
22
22
 
23
 
#include <drizzled/function/time/date.h>
24
 
 
25
 
namespace drizzled
26
 
{
 
23
#include "drizzled/function/time/date.h"
27
24
 
28
25
/* forward declarations */
29
 
class Date;
 
26
namespace drizzled {class Date;}
30
27
 
31
28
class Item_func_last_day :public Item_date
32
29
{
36
33
  /**
37
34
   * All functions which inherit from Item_date must implement
38
35
   * their own get_temporal() method, which takes a supplied
39
 
   * Date reference and populates it with a correct
 
36
   * drizzled::Date reference and populates it with a correct
40
37
   * date based on the semantics of the function.
41
38
   *
42
39
   * For LAST_DATE(), we interpret the function's argument
49
46
   * For a NULL parameter, we return false and set null_value
50
47
   * to true.
51
48
   *
52
 
   * @param Reference to a Date to populate
 
49
   * @param Reference to a drizzled::Date to populate
53
50
   */
54
 
  bool get_temporal(Date &temporal);
 
51
  bool get_temporal(drizzled::Date &temporal);
55
52
};
56
53
 
57
 
} /* namespace drizzled */
58
 
 
59
54
#endif /* DRIZZLED_FUNCTION_TIME_LAST_DAY_H */