~ubuntu-branches/ubuntu/saucy/drizzle/saucy

« back to all changes in this revision

Viewing changes to drizzled/session/state.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#pragma once
22
22
 
23
 
#include <drizzled/util/string.h>
24
 
#include <boost/unordered_map.hpp>
25
 
 
26
 
namespace drizzled
27
 
{
28
 
 
29
 
class Session;
30
 
 
31
 
namespace session
32
 
{
33
 
 
34
 
class State {
35
 
  std::vector <char> _query;
36
 
 
 
23
#include <vector>
 
24
#include <cstring>
 
25
 
 
26
namespace drizzled {
 
27
namespace session {
 
28
 
 
29
class State 
 
30
{
37
31
public:
38
 
  typedef boost::shared_ptr<State> shared_ptr;
39
 
  typedef boost::shared_ptr<State> const_shared_ptr;
40
 
 
41
 
  State(const char *in_packet, size_t in_packet_length);
42
 
 
43
 
  const char *query() const;
44
 
 
45
 
  const char *query(size_t &size) const;
 
32
  State(const char*, size_t);
 
33
 
 
34
  const char* query() const;
 
35
  const char* query(size_t&) const;
46
36
 
47
37
protected:
48
38
  friend class Session;
 
39
private:
 
40
  std::vector<char> _query;
49
41
};
50
42
 
51
43
} /* namespace session */
52
44
} /* namespace drizzled */
53