2
* Copyright (C) 2013 Drizzle Developer Group
3
* Copyright (C) 2013 Kuldeep Porwal
6
* Use and distribution licensed under the BSD license. See
7
* the COPYING file in the parent directory for full text.
9
* summary: Returns objects of every event
14
#include "libdrizzle/common.h"
15
#include "libdrizzle/commonapi.h"
21
//#include<libdrizzle-5.1/event_data.h>
24
using namespace binlogevent;
26
void EventData::getTableMap(TableMapEvent& tableMap)
28
tableMap.initWithData(_data);
31
void EventData::getUpdateEvent(RowEvent& updateEvent)
33
updateEvent.setRowEventType(3); // type 3
34
updateEvent.initWithData(_data);
37
void EventData::getDeleteEvent(RowEvent& deleteEvent)
39
deleteEvent.setRowEventType(2); // type 2
40
deleteEvent.initWithData(_data);
43
void EventData::getWriteEvent(RowEvent& writeEvent)
45
writeEvent.setRowEventType(1); // type 1
46
writeEvent.initWithData(_data);
49
void EventData::getQueryEvent(QueryEvent& queryEvent)
51
queryEvent.initWithData(_data);
53
void EventData::getXidEvent(XidEvent& xidEvent)
55
xidEvent.initWithData(_data);