~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/temporary.h

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
class Temporary : public Table
31
31
{
32
 
  instance::Singular *_share; /**< Pointer to the shared metadata about the table */
 
32
  TableShare *_share; /**< Pointer to the shared metadata about the table */
33
33
 
34
34
public:
35
 
  Temporary(const identifier::Table::Type type_arg,
36
 
            const identifier::Table &identifier,
 
35
  Temporary(TableIdentifier::Type type_arg,
 
36
             TableIdentifier &identifier,
37
37
             char *path_arg, uint32_t path_length_arg) :
38
38
    Table()
39
39
  {
40
 
    _share= new instance::Singular(type_arg, identifier, path_arg, path_length_arg);
 
40
    _share= new TableShare(type_arg, identifier, path_arg, path_length_arg);
41
41
  }
42
42
 
43
43
  ~Temporary()
47
47
  virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
48
48
  virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
49
49
  virtual bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
50
 
  virtual void setShare(TableShare *new_share)
51
 
  {
52
 
    _share= static_cast<instance::Singular *>(new_share);
53
 
  }
54
 
 
55
 
  void release(void)
56
 
  {
57
 
    delete _share;
58
 
    _share= NULL;
59
 
  }
 
50
  virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
60
51
};
61
52
 
62
 
 
63
53
} /* namespace table */
64
54
} /* namespace drizzled */
65
55