~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/shell.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_TABLE_SHELL_H
22
 
#define DRIZZLED_TABLE_SHELL_H
23
 
 
24
 
namespace drizzled
25
 
{
26
 
 
27
 
namespace table
28
 
{
 
21
#pragma once
 
22
 
 
23
#include <drizzled/table.h>
 
24
 
 
25
namespace drizzled {
 
26
namespace table {
29
27
 
30
28
class Shell : public drizzled::Table
31
29
{
33
31
 
34
32
public:
35
33
  Shell(TableShare &arg) :
36
 
    Table(),
37
34
    _share(arg)
38
35
  {
39
36
  }
40
37
 
41
 
  ~Shell()
42
 
  {
43
 
  }
44
 
 
45
38
  const TableShare *getShare() const { return &_share; } /* Get rid of this long term */
46
39
  TableShare *getMutableShare() { return &_share; } /* Get rid of this long term */
47
40
  bool hasShare() const { return true; } /* Get rid of this long term */
48
41
  void setShare(TableShare *) { ; } /* Get rid of this long term */
49
42
 
50
 
  void release() { assert(0); }; // This should never happen
 
43
  void release() { assert(false); }; // This should never happen
51
44
 
52
45
};
53
46
 
54
47
} /* namespace table */
55
48
} /* namespace drizzled */
56
49
 
57
 
#endif /* DRIZZLED_TABLE_SHELL_H */