~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSTime.h

  • Committer: Brian Aker
  • Date: 2010-10-22 07:38:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1885.
  • Revision ID: brian@tangent.org-20101022073849-h3j2eglp70dav2ze
Adds in a portion of the ref constraints table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2008 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
36
36
#include "CSDefs.h"
37
37
#include "CSObject.h"
38
38
 
 
39
using namespace std;
 
40
 
39
41
class CSTime : public CSObject  {
40
42
public:
41
43
        CSTime(): iIsNull(true) { }
89
91
        void setUTC1601(uint64_t nsec100);
90
92
        uint64_t getUTC1601();
91
93
 
92
 
        /* 
93
 
         * Tests if the time is more than 'max_age' seconds in the past.
94
 
         */
95
 
        bool olderThen(time_t max_age);
96
 
 
97
 
        static  uint64_t getTimeCurrentTicks();
98
94
private:
99
95
        bool    iIsNull;
100
96
        char    iCString[100];