Drizzled Public API Documentation

transaction_log_reader.h
Go to the documentation of this file.
00001 /* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2008-2009 Sun Microsystems, Inc.
00005  *
00006  *  Authors:
00007  *
00008  *  Jay Pipes <joinfu@sun.com>
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00038 #pragma once
00039 
00040 #include <drizzled/plugin/transaction_reader.h>
00041 
00042 class TransactionLog;
00043 
00047 class TransactionLogReader :public drizzled::plugin::TransactionReader
00048 {
00049 private:
00051   const TransactionLog &log;
00052 public:
00053   TransactionLogReader(std::string name_arg, const TransactionLog &in_log)
00054     : drizzled::plugin::TransactionReader(name_arg), log(in_log)
00055   {}
00056 
00058   ~TransactionLogReader() {}
00071   bool read(const drizzled::ReplicationServices::GlobalTransactionId &to_read_trx_id, 
00072             drizzled::message::Transaction *to_fill);
00073 };
00074