~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.h

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
 
286
286
 
287
287
  /**
288
 
   * Operator overload for adding/subtracting a TemporalInterval
289
 
   * instance to this temporal.
290
 
   *
291
 
   * @param TemporalInterval instance to add/subtract to/from
292
 
   */
293
 
  Date& operator+=(const TemporalIntervalYear &rhs);
294
 
  Date& operator+=(const TemporalIntervalDayOrLess &rhs);
295
 
  Date& operator+=(const TemporalIntervalDayOrWeek &rhs);
296
 
  Date& operator+=(const TemporalIntervalYearMonth &rhs);
297
 
  Date& operator-=(const TemporalIntervalYear &rhs);
298
 
  Date& operator-=(const TemporalIntervalDayOrLess &rhs);
299
 
  Date& operator-=(const TemporalIntervalDayOrWeek &rhs);
300
 
  Date& operator-=(const TemporalIntervalYearMonth &rhs);
301
 
 
302
 
 
303
 
  /**
304
288
   * Operator overload for when a DateTime instance is
305
289
   * assigned to a Date.  We do a copy of the DateTime's
306
290
   * date-related components.
329
313
   *
330
314
   * @param C-String to fill.
331
315
   * @param Length of to C-String
332
 
   * @returns length of string written (not including trailing '\0').
 
316
   * @returns length of string written (including trailing '\0').
333
317
   *          If output was truncated, returns length that would have
334
318
   *          been outputted.
335
319
   */
349
333
   * successful.
350
334
   *
351
335
   * @param String to convert from
352
 
   * @param Length of supplied string
 
336
   * @param Length of supplied string (not including trailing '\0').
353
337
   */
354
338
  virtual bool from_string(const char *from, size_t from_len);
355
339