~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/include/pgscript/generators/pgsDictionaryGen.h

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2011-06-07 23:03:54 UTC
  • mfrom: (1.3.1 upstream) (13 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110607230354-3td4j9y71u4ahcvj
Tags: 1.14.0~beta1-1
* New upstream development release, adding Build-Depends on
  postgresql-server-dev-all >= 117~.
* Add Build-Depends on quilt, (un)patch to debian/rules and patch for fixing
  the include for kwlist.h in pgadmin/db/keywords.c.
* Add pg_config --includedir-server output to CPPFLAGS.
* Remove unrecognized configure options: --with-wx-config,
  --with-pgsql-include, --enable-gtk2, --enable-unicode.
* Clean up manually the files that are left behind after the broken
  distclean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgScript - PostgreSQL Tools
4
 
// 
5
 
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
 
4
//
 
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
//////////////////////////////////////////////////////////////////////////
16
16
 
17
17
class pgsDictionaryGen : public pgsObjectGen
18
18
{
19
 
        
 
19
 
20
20
private:
21
21
 
22
22
        typedef pgsCopiedPtr<pgsIntegerGen> pgsRandomizer; // Needs a clone() method
23
23
 
24
24
        wxString m_file_path;
25
25
        wxCSConv m_conv;
26
 
        
 
26
 
27
27
        long m_nb_lines;
28
28
 
29
29
        pgsRandomizer m_randomizer;
30
30
 
31
31
public:
32
32
 
33
 
        pgsDictionaryGen(const wxString & file_path, const bool & sequence = false,
34
 
                        const long & seed = wxDateTime::GetTimeNow(), wxCSConv conv = wxConvLocal);
 
33
        pgsDictionaryGen(const wxString &file_path, const bool &sequence = false,
 
34
                         const long &seed = wxDateTime::GetTimeNow(), wxCSConv conv = wxConvLocal);
35
35
 
36
36
        virtual wxString random();
37
37
 
38
38
        virtual ~pgsDictionaryGen();
39
39
 
40
 
        virtual pgsDictionaryGen * clone();
 
40
        virtual pgsDictionaryGen *clone();
41
41
 
42
42
        /* pgsDictionaryGen(const pgsDictionaryGen & that); */
43
 
        
44
 
        const long & nb_lines() const;
45
 
        
 
43
 
 
44
        const long &nb_lines() const;
 
45
 
46
46
private:
47
 
        
48
 
        pgsDictionaryGen & operator =(const pgsDictionaryGen & that);
 
47
 
 
48
        pgsDictionaryGen &operator =(const pgsDictionaryGen &that);
49
49
 
50
50
private:
51
51