~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2010-10-18 21:21:20 UTC
  • mto: This revision was merged to the branch mainline in revision 1871.
  • Revision ID: barry.leslie@primebase.com-20101018212120-dqukgtkwhb1imt1o
Merged changes from lp:pbms. These changes should remove any danger
of longjmp() clobbering local variables.

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];