~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/plugin/catalog.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
/* 
37
37
  This object handles the aggregate of all operations for any/all of the Catalog engines.
38
38
*/
39
 
class DRIZZLED_API Catalog : public Plugin {
40
 
  /* Disable default constructors */
41
 
  Catalog();
42
 
  Catalog(const Catalog &);
43
 
  Catalog& operator=(const Catalog &);
44
 
 
 
39
class DRIZZLED_API Catalog : public Plugin 
 
40
{
45
41
public:
46
42
  typedef std::vector<Catalog *> vector;
47
43
 
48
44
  explicit Catalog(std::string name_arg) :
49
45
    Plugin(name_arg, "Catalog")
50
46
  {}
51
 
  virtual ~Catalog();
52
47
 
53
48
  virtual catalog::Engine::shared_ptr engine()= 0;
54
49
 
55
 
  static bool create(identifier::Catalog::const_reference);
56
 
  static bool create(identifier::Catalog::const_reference, message::catalog::shared_ptr &);
57
 
  static bool drop(identifier::Catalog::const_reference);
 
50
  static bool create(const identifier::Catalog&);
 
51
  static bool create(const identifier::Catalog&, message::catalog::shared_ptr &);
 
52
  static bool drop(const identifier::Catalog&);
58
53
 
59
 
  static bool lock(identifier::Catalog::const_reference);
60
 
  static bool unlock(identifier::Catalog::const_reference);
 
54
  static bool lock(const identifier::Catalog&);
 
55
  static bool unlock(const identifier::Catalog&);
61
56
 
62
57
  // Required for plugin interface
63
58
  static bool addPlugin(plugin::Catalog *plugin);
64
59
  static void removePlugin(plugin::Catalog *plugin);
65
60
 
66
61
  // Get Meta information
67
 
  static bool exist(identifier::Catalog::const_reference);
68
 
  static void getIdentifiers(identifier::Catalog::vector &identifiers);
 
62
  static bool exist(const identifier::Catalog&);
 
63
  static void getIdentifiers(identifier::catalog::vector &identifiers);
69
64
  static void getMessages(message::catalog::vector &messages);
70
 
  static message::catalog::shared_ptr getMessage(identifier::Catalog::const_reference);
 
65
  static message::catalog::shared_ptr getMessage(const identifier::Catalog&);
71
66
 
72
67
  // Get Instance
73
 
  static catalog::Instance::shared_ptr getInstance(identifier::Catalog::const_reference);
 
68
  static catalog::Instance::shared_ptr getInstance(const identifier::Catalog&);
74
69
};
75
70
 
76
71
} /* namespace plugin */