~2591kuldeep/libdrizzle/libdrizzle-binlogapi

« back to all changes in this revision

Viewing changes to libdrizzle/binlogevent/event_data.cc

  • Committer: kuldeep
  • Date: 2013-09-19 22:27:25 UTC
  • Revision ID: kuldeep@kuldeep-laptop-20130919222725-xsb4tlxp0tp3mm2t
Adding Tested code on local environment, now we can access the new api functions within library

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * Copyright (C) 2013 Drizzle Developer Group
3
 
 * Copyright (C) 2013 Kuldeep Porwal
4
 
 * All rights reserved.
5
 
 *
6
 
 * Use and distribution licensed under the BSD license.  See
7
 
 * the COPYING file in the parent directory for full text.
8
 
 *
9
 
 * summary: Returns objects of every event
10
 
 *
11
 
 */
12
 
#include<iostream>
13
 
#include <libdrizzle-5.1/libdrizzle.h>
14
 
#include <stdio.h>
15
 
#include <stdlib.h>
16
 
#include <errno.h>
17
 
#include <inttypes.h>
18
 
#include<string.h>
19
 
#include"event_data.h"
20
 
 
21
 
using namespace std;
22
 
using namespace binlogevent;
23
 
 
24
 
void EventData::getTableMap(TableMapEvent& tableMap)
25
 
{
26
 
        tableMap.initWithData(_data);
27
 
}
28
 
 
29
 
void EventData::getRowEvent(RowEvent& writeEvent)
30
 
{
31
 
        writeEvent.initWithData(_data);
32
 
}
33
 
void EventData::getQueryEvent(QueryEvent& queryEvent)
34
 
{
35
 
        queryEvent.initWithData(_data);
36
 
}
37
 
void EventData::getXidEvent(XidEvent& xidEvent)
38
 
{
39
 
        xidEvent.initWithData(_data);
40
 
}