~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/catalog/engine.h

  • Committer: Brian Aker
  • Date: 2011-01-12 06:45:23 UTC
  • mto: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110112064523-rqhptaqbph22qmj1
RemoveĀ customĀ error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define DRIZZLED_CATALOG_ENGINE_H
23
23
 
24
24
#include <boost/shared_ptr.hpp>
25
 
#include <drizzled/identifier/catalog.h>
26
 
#include <drizzled/message/catalog.h>
 
25
#include "drizzled/identifier/catalog.h"
 
26
#include "drizzled/message/catalog.h"
27
27
 
28
28
namespace drizzled {
29
 
namespace plugin {
30
 
 
31
 
class Catalog;
32
 
 
33
 
} // namespace plugin
34
29
namespace catalog {
35
30
 
36
31
class Engine
39
34
  typedef boost::shared_ptr<Engine> shared_ptr;
40
35
  typedef std::vector<shared_ptr> vector;
41
36
 
42
 
protected:
43
 
  friend class drizzled::plugin::Catalog;
44
 
 
45
37
  Engine()
46
38
  { };
47
39
 
49
41
  { };
50
42
 
51
43
  // DDL
52
 
  virtual bool create(identifier::Catalog::const_reference , message::catalog::shared_ptr &)= 0;
53
 
  virtual bool drop(identifier::Catalog::const_reference)= 0;
 
44
  virtual bool create(const identifier::Catalog &, message::catalog::shared_ptr &)= 0;
 
45
  virtual bool drop(const identifier::Catalog &)= 0;
54
46
 
55
47
  // Get Meta information
56
 
  virtual bool exist(identifier::Catalog::const_reference identifier)= 0;
 
48
  virtual bool exist(const identifier::Catalog &identifier)= 0;
57
49
  virtual void getIdentifiers(identifier::Catalog::vector &identifiers)= 0;
58
 
  virtual message::catalog::shared_ptr getMessage(identifier::Catalog::const_reference)= 0;
 
50
  virtual bool getMessage(const identifier::Catalog &identifier, message::catalog::shared_ptr &message)= 0;
59
51
  virtual void getMessages(message::catalog::vector &messages)= 0;
 
52
 
 
53
  // Retrieve an instance to work with
 
54
  virtual bool getInstance(const identifier::Catalog &identifier, catalog::Instance::shared_ptr &instance)= 0;
60
55
};
61
56
 
62
57
} /* namespace catalog */