18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef DRIZZLED_TABLE_TEMPORARY_H
22
#define DRIZZLED_TABLE_TEMPORARY_H
30
26
class Temporary : public Table
32
TableShare *_share; /**< Pointer to the shared metadata about the table */
28
instance::Singular *_share; /**< Pointer to the shared metadata about the table */
35
Temporary(const TableIdentifier::Type type_arg,
36
const TableIdentifier &identifier,
37
char *path_arg, uint32_t path_length_arg) :
40
_share= new TableShare(type_arg, identifier, path_arg, path_length_arg);
31
Temporary(const identifier::Table::Type type_arg,
32
const identifier::Table &identifier,
33
const char *path_arg, uint32_t path_length_arg)
35
_share= new instance::Singular(type_arg, identifier, path_arg, path_length_arg);
47
38
virtual const TableShare *getShare() const { assert(_share); return _share; } /* Get rid of this long term */
48
39
virtual TableShare *getMutableShare() { assert(_share); return _share; } /* Get rid of this long term */
49
40
virtual bool hasShare() const { return _share ? true : false ; } /* Get rid of this long term */
50
virtual void setShare(TableShare *new_share) { _share= new_share; } /* Get rid of this long term */
41
virtual void setShare(TableShare *new_share)
43
_share= static_cast<instance::Singular *>(new_share);