XTA: API Reference for C++ language
Main Page
Namespaces
Classes
Files
File List
File Members
Xid.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 XID_HPP
20
# define XID_HPP
21
22
23
24
namespace
xta {
25
class
Xid
{
26
public
:
27
/*
28
* Create a new Transaction Identifier object, this class is intended
29
* only to be a proxy of the C base class: it does not allocate and/or
30
* create a real identifier, just map an existent one
31
* @param[in] xid is the C base object that will be wrapped
32
*/
33
Xid
(
const
xta_xid_t *
xid
);
34
~Xid
();
38
std::string
toString
();
39
40
private
:
41
const
xta_xid_t *
xid
;
42
};
43
};
44
45
46
47
#endif
/* XID_HPP */
xta::Xid
Definition:
Xid.hpp:25
xta::Xid::toString
std::string toString()
Definition:
Xid.cpp:51
xta::Xid::~Xid
~Xid()
Definition:
Xid.cpp:46
xta::Xid::xid
const xta_xid_t * xid
Definition:
Xid.hpp:41
xta::Xid::Xid
Xid(const xta_xid_t *xid)
Definition:
Xid.cpp:41
Copyright © 2009-2019, Christian Ferrari
tiian@users.sourceforge.net
http://www.tiian.org/