aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/binding.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-09-07 15:09:23 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-09-07 15:09:23 +0200
commit4c38968b151af31ebd9ffa381f7a00df7183a8d6 (patch)
tree20687a5976705638926992858aade06434d34f29 /odb/oracle/binding.hxx
parentfeed84023d4bba8b3de84f1d64007e9c4428681b (diff)
Add bind structures
Diffstat (limited to 'odb/oracle/binding.hxx')
-rw-r--r--odb/oracle/binding.hxx45
1 files changed, 45 insertions, 0 deletions
diff --git a/odb/oracle/binding.hxx b/odb/oracle/binding.hxx
new file mode 100644
index 0000000..778e7fc
--- /dev/null
+++ b/odb/oracle/binding.hxx
@@ -0,0 +1,45 @@
+// file : odb/oracle/binding.hxx
+// author : Constantin Michael <constantin@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#ifndef ODB_ORACLE_BINDING_HXX
+#define ODB_ORACLE_BINDING_HXX
+
+#include <odb/pre.hxx>
+
+#include <cstddef> // std::size_t
+
+#include <odb/oracle/version.hxx>
+#include <odb/oracle/oracle-types.hxx>
+
+#include <odb/oracle/details/export.hxx>
+
+namespace odb
+{
+ namespace oracle
+ {
+ class LIBODB_ORACLE_EXPORT binding
+ {
+ public:
+ typedef oracle::bind bind_type;
+
+ binding (bind_type* b, std::size_t n)
+ : bind (b), count (n), version (0)
+ {
+ }
+
+ bind_type* bind;
+ std::size_t count;
+ std::size_t version;
+
+ private:
+ binding (const binding&);
+ binding& operator= (const binding&);
+ };
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_ORACLE_BINDING_HXX