~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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