XTA: API Reference for C++ language
Main Page
Namespaces
Classes
Files
File List
File Members
Config.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 CONFIG_HPP
20
# define CONFIG_HPP
21
22
23
24
/* include C++ standard header files */
25
#include <string>
26
27
/* include XTA header file */
28
#include "xta.h"
29
#include "
Xid.hpp
"
30
#include "
XaResource.hpp
"
31
32
33
34
using namespace
std;
35
36
37
38
namespace
xta {
42
class
Config
{
43
public
:
44
~
Config
();
49
int
getConnectionTimeout();
54
void
setConnectionTimeout(
int
value);
55
private
:
61
Config
(
void
);
62
Config
(xta_config_t *config);
63
friend
class
Transaction
;
67
xta_config_t *
config
;
68
};
69
};
70
71
72
73
#endif
/* CONFIG_HPP */
XaResource.hpp
xta::Transaction
Definition:
Transaction.hpp:43
Xid.hpp
xta::Config::config
xta_config_t * config
Definition:
Config.hpp:67
xta::Config
Definition:
Config.hpp:42
Copyright © 2009-2019, Christian Ferrari
tiian@users.sourceforge.net
http://www.tiian.org/