~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.h

  • Committer: Monty Taylor
  • Date: 2010-12-26 03:15:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226031544-1cf3raipu53fnmyj
Through page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
#include <ostream>
73
73
 
74
74
/* Outside forward declarations */
75
 
namespace type {
76
 
class Decimal;
77
 
}
 
75
class my_decimal;
78
76
 
79
77
namespace drizzled
80
78
{
435
433
  virtual bool from_time_t(const time_t from);
436
434
 
437
435
  /**
438
 
   * Fills a supplied type::Decimal with a representation of
 
436
   * Fills a supplied my_decimal with a representation of
439
437
   * the Date value.
440
438
   *
441
 
   * @param Pointer to the type::Decimal to fill
 
439
   * @param Pointer to the my_decimal to fill
442
440
   */
443
 
  virtual void to_decimal(type::Decimal *to) const;
 
441
  virtual void to_decimal(my_decimal *to) const;
444
442
 
445
443
  friend class TemporalInterval;
446
444
  friend class Timestamp;
570
568
  bool from_time_t(const time_t from);
571
569
 
572
570
  /**
573
 
   * Fills a supplied type::Decimal with a representation of
 
571
   * Fills a supplied my_decimal with a representation of
574
572
   * the Time value.
575
573
   *
576
 
   * @param Pointer to the type::Decimal to fill
 
574
   * @param Pointer to the my_decimal to fill
577
575
   */
578
 
  void to_decimal(type::Decimal *to) const;
 
576
  void to_decimal(my_decimal *to) const;
579
577
 
580
578
  friend class Date;
581
579
  friend class DateTime;
656
654
   * @param time_t to convert from
657
655
   */
658
656
  bool from_time_t(const time_t from);
659
 
  bool from_timeval(struct timeval &_timeval);
660
657
 
661
658
  /**
662
659
   * Attempts to populate the DateTime instance based
685
682
  void to_tm(struct tm *to) const;
686
683
 
687
684
  /**
688
 
   * Fills a supplied type::Decimal with a representation of
 
685
   * Fills a supplied my_decimal with a representation of
689
686
   * the DateTime value.
690
687
   *
691
 
   * @param Pointer to the type::Decimal to fill
 
688
   * @param Pointer to the my_decimal to fill
692
689
   */
693
 
  void to_decimal(type::Decimal *to) const;
 
690
  void to_decimal(my_decimal *to) const;
694
691
 
695
692
  friend class Timestamp;
696
693
};
800
797
   *
801
798
   * @param timeval to fill.
802
799
   */
803
 
  void to_timeval(struct timeval &to) const;
 
800
  void to_timeval(struct timeval *to) const;
804
801
};
805
802
 
806
803
/**