~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal_interval.h

Merged Pawel from lp:~pblokus/drizzle/unittests-plugin-interfaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
   * Sets whether or not this object specifies a negative interval
74
74
   * @param[in] in_neg true if this is a negative interval, false if not
75
75
   */
76
 
  void setNegative(bool in_neg= true)
 
76
  inline void setNegative(bool in_neg= true)
77
77
  {
78
78
    neg= in_neg;
79
79
  }
81
81
  /**
82
82
   * reverse boolean value of the negative flag
83
83
   */
84
 
  void toggleNegative()
 
84
  inline void toggleNegative()
85
85
  {
86
86
    neg= !neg;
87
87
  }
90
90
   * @retval true this is a negative temporal interval
91
91
   * @retval false this is a positive temporal interval
92
92
   */
93
 
  bool getNegative() const
 
93
  inline bool getNegative() const
94
94
  {
95
95
    return neg;
96
96
  }
97
97
 
 
98
  inline uint32_t  get_year() { return year; };
 
99
  inline void set_year(uint32_t new_year) { year = new_year; };
 
100
 
 
101
  inline uint32_t  get_month(){ return month; };
 
102
  inline void set_month(uint32_t new_month) { month = new_month; };
 
103
 
 
104
  inline uint32_t  get_day(){ return day; };
 
105
  inline void set_day(uint32_t new_day) { day = new_day; };
 
106
 
 
107
  inline uint32_t  get_hour(){ return hour; };
 
108
  inline void set_hour(uint32_t new_hour) { hour = new_hour; };
 
109
 
 
110
  inline uint64_t  get_minute(){ return minute; };
 
111
  inline void set_minute(uint32_t new_minute) { minute = new_minute; };
 
112
 
 
113
  inline uint64_t  get_second(){ return second; };
 
114
  inline void set_second(uint32_t new_second) { second = new_second; };
 
115
 
 
116
  inline uint64_t  get_second_part(){ return second_part; };
 
117
  inline void set_second_part(uint32_t new_second_part) { second_part = new_second_part; };
 
118
 
98
119
  /**
99
120
   * Populate this TemporalInterval from a string value
100
121
   *