~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.h

  • Committer: Monty Taylor
  • Date: 2009-02-21 05:16:56 UTC
  • mto: (892.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 898.
  • Revision ID: mordred@inaugust.com-20090221051656-adovwra4xd5z1ssj
More raping of Jay's code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
/* Forward declaration needed */
200
200
class DateTime;
201
201
class Timestamp;
 
202
class Time;
202
203
 
203
204
/**
204
205
 * Class representing temporal components in a valid
259
260
  Date& operator+=(const Date &rhs);
260
261
  Date& operator-=(const Date &rhs);
261
262
 
 
263
  /**
 
264
   * Operator to add/subtract a Time from a Time.
 
265
   * We can return a Time new temporal instance.
 
266
   *
 
267
   * @param Temporal instance to add/subtract to/from
 
268
   */
 
269
  const Date operator-(const Time &rhs);
 
270
  const Date operator+(const Time &rhs);
 
271
  Date& operator-=(const Time &rhs);
 
272
  Date& operator+=(const Time &rhs);
 
273
 
262
274
 
263
275
  /**
264
276
   * Operator overload for adding/subtracting a DateTime
532
544
   */
533
545
  void to_decimal(my_decimal *to) const;
534
546
 
 
547
  friend class Date;
535
548
  friend class DateTime;
536
549
};
537
550
 
543
556
{
544
557
public:
545
558
  DateTime() :Date() {}
546
 
  /**
547
 
   * Operator to add/subtract a Time from a Time.
548
 
   * We can return a Time new temporal instance.
549
 
   *
550
 
   * @param Temporal instance to add/subtract to/from
551
 
   */
552
 
  const DateTime operator-(const Time &rhs);
553
 
  const DateTime operator+(const Time &rhs);
554
 
  DateTime& operator-=(const Time &rhs);
555
 
  DateTime& operator+=(const Time &rhs);
556
559
 
557
560
  /**
558
561
   * Operator overload for adding/subtracting a TemporalInterval