~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_rewrite.h

Merge Monty - Updates to pandora-build to support features of gcc 4.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22
22
 */
23
23
 
24
 
#pragma once
25
 
 
26
 
#include <drizzled/atomics.h>
27
 
#include <drizzled/plugin/plugin.h>
28
 
 
29
 
#include <drizzled/visibility.h>
 
24
#ifndef DRIZZLED_PLUGIN_QUERY_REWRITE_H
 
25
#define DRIZZLED_PLUGIN_QUERY_REWRITE_H
 
26
 
 
27
#include "drizzled/atomics.h"
 
28
#include "drizzled/plugin/plugin.h"
 
29
#include "drizzled/session.h"
30
30
 
31
31
/**
32
32
 * @file Defines the API for a QueryRewriter.  
41
41
/**
42
42
 * Class which rewrites queries
43
43
 */
44
 
class DRIZZLED_API QueryRewriter : public Plugin
 
44
class QueryRewriter : public Plugin
45
45
{
 
46
 
46
47
public:
 
48
 
47
49
  explicit QueryRewriter(std::string name_arg)
48
50
    : 
49
51
      Plugin(name_arg, "QueryRewriter")
50
52
  {}
51
53
 
 
54
  virtual ~QueryRewriter() {}
 
55
 
52
56
  /**
53
57
   * Rewrite a query in the form of a std::string
54
58
   *
69
73
   * @param[out] to_rewrite the query to rewrite
70
74
   */
71
75
  static void rewriteQuery(const std::string &schema, std::string &to_rewrite);
 
76
 
 
77
private:
 
78
 
 
79
  QueryRewriter();
 
80
  QueryRewriter(const QueryRewriter&);
 
81
  QueryRewriter& operator=(const QueryRewriter&);
 
82
 
 
83
 
72
84
};
73
85
 
74
86
} /* namespace plugin */
 
87
 
75
88
} /* namespace drizzled */
76
89
 
 
90
#endif /* DRIZZLED_PLUGIN_QUERY_REWRITE_H */