XTA: API Reference for C++ language

NativeXaResource.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 NATIVE_XA_RESOURCE_HPP
20 # define NATIVE_XA_RESOURCE_HPP
21 
22 
23 
24 /* include XTA header file */
25 #include "xta.h"
26 #include "XaResource.hpp"
27 
28 
29 
30 namespace xta {
31  class NativeXaResource : public XaResource {
32  public:
47  NativeXaResource(std::string const& name,
48  std::string const& switch_file,
49  std::string const& open_info,
50  std::string const& close_info);
55  xta_xa_resource_t *getCBaseXaResource() {
56  return (xta_xa_resource_t *)nxar; }
57 
58  private:
62  xta_native_xa_resource_t *nxar;
63  };
64 };
65 
66 
67 
68 #endif /* NATIVE_XA_RESOURCE_HPP */
NativeXaResource(std::string const &name, std::string const &switch_file, std::string const &open_info, std::string const &close_info)
xta_xa_resource_t * getCBaseXaResource()
xta_native_xa_resource_t * nxar

Copyright © 2009-2019, Christian Ferrari tiian@users.sourceforge.net http://www.tiian.org/