~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/catalog/engine.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
RemoveĀ unusedĀ Name_resolution_context::error_reporter

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