~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/tables.h

  • Committer: Brian Aker
  • Date: 2010-07-01 22:34:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1647.
  • Revision ID: brian@gaz-20100701223457-qwlgel14p79al4w4
Table now uses the generator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  class Generator : public drizzled::plugin::TableFunction::Generator 
39
39
  {
40
40
    drizzled::SchemaGenerator schema_generator;
 
41
    drizzled::TableGenerator table_generator;
41
42
    const drizzled::SchemaIdentifier *schema_ptr;
 
43
    const drizzled::TableIdentifier *table_ptr;
42
44
    drizzled::message::Table table_proto;
43
 
    std::set<std::string> table_names;
44
 
    std::set<std::string>::iterator table_iterator;
45
 
    bool is_tables_primed;
46
45
 
47
46
    virtual void fill();
48
47
    bool nextTableCore();
55
54
 
56
55
    const std::string &table_name()
57
56
    {
58
 
      return (*table_iterator);
 
57
      return table_proto.name();
59
58
    }
60
59
 
61
60
    const drizzled::message::Table& getTableProto()
65
64
 
66
65
    bool isTablesPrimed()
67
66
    {
68
 
      return is_tables_primed;
 
67
      return true;
69
68
    }
70
69
 
71
70
    bool populate();