XTA: API Reference for C++ language
Main Page
Namespaces
Classes
Files
File List
File Members
PostgresqlXaResource.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009-2018, Christian Ferrari <tiian@users.sourceforge.net>
3
* All rights reserved.
4
*
5
* This file is part of LIXA.
6
*
7
* LIXA is free software: you can redistribute this file and/or modify
8
* it under the terms of the GNU Lesser General Public License version 2.1 as
9
* published by the Free Software Foundation.
10
*
11
* LIXA is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with LIXA. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef POSTGRESQL_XA_RESOURCE_HPP
20
# define POSTGRESQL_XA_RESOURCE_HPP
21
22
23
24
#include <string>
25
26
27
28
/* include XTA header file */
29
#include "xta.h"
30
#include "
AcquiredXaResource.hpp
"
31
32
33
34
namespace
xta {
38
class
PostgresqlXaResource
:
public
AcquiredXaResource
{
39
public
:
49
PostgresqlXaResource
(PGconn *connection, std::string
const
& name,
50
std::string
const
& open_info);
51
~PostgresqlXaResource
();
55
xta_xa_resource_t *
getCBaseXaResource
() {
56
return
(xta_xa_resource_t *)
pxar
; }
57
58
private
:
62
xta_postgresql_xa_resource_t *
pxar
;
63
};
64
};
65
66
67
68
#endif
/* POSTGRESQL_XA_RESOURCE_HPP */
xta::PostgresqlXaResource::PostgresqlXaResource
PostgresqlXaResource(PGconn *connection, std::string const &name, std::string const &open_info)
Definition:
PostgresqlXaResource.cpp:41
xta::PostgresqlXaResource::getCBaseXaResource
xta_xa_resource_t * getCBaseXaResource()
Definition:
PostgresqlXaResource.hpp:55
xta::AcquiredXaResource
Definition:
AcquiredXaResource.hpp:29
xta::PostgresqlXaResource
Definition:
PostgresqlXaResource.hpp:38
xta::PostgresqlXaResource::~PostgresqlXaResource
~PostgresqlXaResource()
Definition:
PostgresqlXaResource.cpp:50
AcquiredXaResource.hpp
xta::PostgresqlXaResource::pxar
xta_postgresql_xa_resource_t * pxar
Definition:
PostgresqlXaResource.hpp:62
Copyright © 2009-2019, Christian Ferrari
tiian@users.sourceforge.net
http://www.tiian.org/