summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/SqlDB/SqlLLU.h
blob: 77b487bc29630936c5eac93504abc93b4076881b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// **********************************************************************
//
// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef SQL_LLU_H
#define SQL_LLU_H

#include <IceDB/SqlTypes.h>

#include <IceStorm/LLURecord.h>

namespace IceStorm
{

class SqlLLU : public IceUtil::Shared
{
public:

    SqlLLU(const SqlDB::DatabaseConnectionPtr&, const std::string&);

    void put(const SqlDB::DatabaseConnectionPtr&, const IceStormElection::LogUpdate&);
    IceStormElection::LogUpdate get(const SqlDB::DatabaseConnectionPtr&) const;

private:

    const std::string _table;
};

typedef IceUtil::Handle<SqlLLU> SqlLLUPtr;

}

#endif