~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Lee Bieber
  • Date: 2010-10-22 16:47:38 UTC
  • mfrom: (1841.1.7 drizzle_pbms)
  • Revision ID: kalebral@gmail.com-20101022164738-vv8w22b8towpb307
Merge Barry - fix bug 657830: PBMS build failure in GCC 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "CSDefs.h"
37
37
#include "CSObject.h"
38
38
 
39
 
using namespace std;
40
 
 
41
39
class CSTime : public CSObject  {
42
40
public:
43
41
        CSTime(): iIsNull(true) { }
91
89
        void setUTC1601(uint64_t nsec100);
92
90
        uint64_t getUTC1601();
93
91
 
 
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();
94
98
private:
95
99
        bool    iIsNull;
96
100
        char    iCString[100];