~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/catalog/engine.h

  • Committer: Monty Taylor
  • Date: 2011-03-06 19:52:59 UTC
  • mto: (2221.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 2222.
  • Revision ID: mordred@inaugust.com-20110306195259-h0wuni1x4o0l3mdo
Updated pandora-build files to version 0.175

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
 
#pragma once
 
21
#ifndef DRIZZLED_CATALOG_ENGINE_H
 
22
#define DRIZZLED_CATALOG_ENGINE_H
22
23
 
23
24
#include <boost/shared_ptr.hpp>
24
25
#include <drizzled/identifier/catalog.h>
25
26
#include <drizzled/message/catalog.h>
26
27
 
27
28
namespace drizzled {
 
29
namespace plugin {
 
30
 
 
31
class Catalog;
 
32
 
 
33
} // namespace plugin
28
34
namespace catalog {
29
35
 
30
36
class Engine
43
49
  { };
44
50
 
45
51
  // DDL
46
 
  virtual bool create(const identifier::Catalog& , message::catalog::shared_ptr &)= 0;
47
 
  virtual bool drop(const identifier::Catalog&)= 0;
 
52
  virtual bool create(identifier::Catalog::const_reference , message::catalog::shared_ptr &)= 0;
 
53
  virtual bool drop(identifier::Catalog::const_reference)= 0;
48
54
 
49
55
  // Get Meta information
50
 
  virtual bool exist(const identifier::Catalog& identifier)= 0;
51
 
  virtual void getIdentifiers(identifier::catalog::vector &identifiers)= 0;
52
 
  virtual message::catalog::shared_ptr getMessage(const identifier::Catalog&)= 0;
 
56
  virtual bool exist(identifier::Catalog::const_reference identifier)= 0;
 
57
  virtual void getIdentifiers(identifier::Catalog::vector &identifiers)= 0;
 
58
  virtual message::catalog::shared_ptr getMessage(identifier::Catalog::const_reference)= 0;
53
59
  virtual void getMessages(message::catalog::vector &messages)= 0;
54
60
};
55
61
 
56
62
} /* namespace catalog */
57
63
} /* namespace drizzled */
58
64
 
 
65
#endif /* DRIZZLED_CATALOG_ENGINE_H */