~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/collation_dictionary/collations.h

  • Committer: Brian Aker
  • Date: 2010-02-17 01:56:39 UTC
  • mfrom: (1273.13.69 build)
  • Revision ID: brian@gaz-20100217015639-ou3s722vekucn5fd
Many updates. Brian, Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef PLUGIN_COLLATION_DICTIONARY_COLLATIONS_H
22
22
#define PLUGIN_COLLATION_DICTIONARY_COLLATIONS_H
23
23
 
24
 
class CollationsTool : public drizzled::plugin::TableFunction
 
24
class CollationsTool : public CharacterSetsTool
25
25
{
26
26
public:
27
27
 
28
28
  CollationsTool();
29
29
 
30
 
  class Generator : public drizzled::plugin::TableFunction::Generator 
 
30
  class Generator : public CharacterSetsTool::Generator 
31
31
  {
32
 
    drizzled::CHARSET_INFO **cs;
33
 
    drizzled::CHARSET_INFO **cl;
 
32
    drizzled::CHARSET_INFO **collation_iter;
 
33
    bool is_collation_primed;
 
34
 
 
35
    bool nextCollationCore();
 
36
    inline bool end();
 
37
 
 
38
    void prime(bool arg= true)
 
39
    {
 
40
      is_collation_primed= arg;
 
41
    }
34
42
 
35
43
  public:
36
44
    Generator(drizzled::Field **arg);
37
45
 
38
46
    bool populate();
 
47
    bool next();
 
48
    bool check();
 
49
    virtual void fill();
 
50
 
 
51
    drizzled::CHARSET_INFO const * collation()
 
52
    {
 
53
      return collation_iter[0];
 
54
    }
 
55
 
 
56
    bool isPrimed()
 
57
    {
 
58
      return is_collation_primed;
 
59
    }
39
60
 
40
61
  };
41
62