~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

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
 *
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
 *
19
19
 * Original author: Paul McCullagh (H&G2JCtL)
20
20
 * Continued development: Barry Leslie
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];