~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/binary_log.h

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include <stdexcept>
13
13
 
14
14
namespace BinaryLog {
 
15
  using namespace google::protobuf;
 
16
  using namespace google::protobuf::io;
15
17
 
16
18
  /**
17
19
     Wrapper class to wrap a protobuf event in a type tag and a length.
31
33
      COUNT
32
34
    };
33
35
 
34
 
    Event(EventType type, google::protobuf::Message *message)
 
36
    Event(EventType type, Message *message)
35
37
      : m_type(type), m_message(message)
36
38
    {
37
39
    }
45
47
      delete m_message;
46
48
    }
47
49
 
48
 
    bool write(google::protobuf::io::CodedOutputStream* out) const;
 
50
    bool write(CodedOutputStream* out) const;
49
51
    void print(std::ostream& out) const;
50
 
    bool read(google::protobuf::io::CodedInputStream* in);
 
52
    bool read(CodedInputStream* in);
51
53
 
52
54
  private:
53
55
    EventType m_type;
54
 
    google::protobuf::Message *m_message;
 
56
    Message *m_message;
55
57
  };
56
58
}
57
59