1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsTimeGen.h 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
//////////////////////////////////////////////////////////////////////////
14
#include "pgscript/pgScript.h"
15
#include <wx/datetime.h>
16
#include "pgscript/generators/pgsIntegerGen.h"
18
class pgsTimeGen : public pgsObjectGen
22
typedef pgsCopiedPtr<pgsIntegerGen> pgsRandomizer; // Needs a clone() method
30
pgsRandomizer m_randomizer;
34
pgsTimeGen(wxDateTime min, wxDateTime max, const bool & sequence,
35
const long & seed = wxDateTime::GetTimeNow());
37
bool is_sequence() const;
39
virtual wxString random();
41
virtual ~pgsTimeGen();
43
virtual pgsTimeGen * clone();
45
/* pgsTimeGen & operator =(const pgsTimeGen & that); */
47
/* pgsTimeGen(const pgsTimeGen & that); */
51
#endif /*PGSTIMEGEN_H_*/