OCILIB (C and C++ Driver for Oracle)  4.7.6
Open source and cross platform Oracle Driver delivering efficient access to Oracle databases.
BindObject.hpp
1 /*
2  * OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI)
3  *
4  * Website: http://www.ocilib.net
5  *
6  * Copyright (c) 2007-2023 Vincent ROGIER <vince.rogier@ocilib.net>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #pragma once
22 
23 #include "ocilibcpp/support.hpp"
24 
25 // ReSharper disable CppClangTidyModernizePassByValue
26 // ReSharper disable CppClangTidyHicppUseEqualsDefault
27 // ReSharper disable CppClangTidyModernizeUseEqualsDefault
28 
29 namespace ocilib
30 {
31  namespace support
32  {
33  inline BindObject::BindObject(const ocilib::Statement& statement, const ostring& name, unsigned int mode) : _statement(statement), _name(name), _mode(mode)
34  {
35  }
36 
37  inline BindObject::~BindObject() noexcept
38  {
39  }
40 
41  inline ostring BindObject::GetName() const
42  {
43  return _name;
44  }
45 
46  inline ocilib::Statement BindObject::GetStatement() const
47  {
48  return _statement;
49  }
50 
51  inline unsigned int BindObject::GetMode() const
52  {
53  return _mode;
54  }
55  }
56 }
Object used for executing SQL or PL/SQL statement and returning the produced results.
Definition: types.hpp:5559
OCILIB ++ Namespace.
std::basic_string< otext, std::char_traits< otext >, std::allocator< otext > > ostring
string class wrapping the OCILIB otext * type and OTEXT() macros ( see Character sets )
Definition: config.hpp:120