summaryrefslogtreecommitdiff
path: root/libodb-oracle/odb/oracle/details/number.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libodb-oracle/odb/oracle/details/number.hxx')
-rw-r--r--libodb-oracle/odb/oracle/details/number.hxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/libodb-oracle/odb/oracle/details/number.hxx b/libodb-oracle/odb/oracle/details/number.hxx
new file mode 100644
index 0000000..8ab6a90
--- /dev/null
+++ b/libodb-oracle/odb/oracle/details/number.hxx
@@ -0,0 +1,44 @@
+// file : odb/oracle/details/number.hxx
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#ifndef ODB_ORACLE_NUMBER_HXX
+#define ODB_ORACLE_NUMBER_HXX
+
+#include <odb/pre.hxx>
+
+#include <cstddef> // std::size_t
+
+#include <odb/oracle/details/export.hxx>
+
+namespace odb
+{
+ // @@ Revise this.
+ //
+ namespace details
+ {
+ }
+
+ namespace oracle
+ {
+ namespace details
+ {
+ using namespace odb::details;
+
+ LIBODB_ORACLE_EXPORT long long
+ number_to_int64 (const char* buffer, std::size_t n);
+
+ LIBODB_ORACLE_EXPORT void
+ int64_to_number (char* buffer, std::size_t& n, long long val);
+
+ LIBODB_ORACLE_EXPORT unsigned long long
+ number_to_uint64 (const char* buffer, std::size_t n);
+
+ LIBODB_ORACLE_EXPORT void
+ uint64_to_number (char* buffer, std::size_t& n, unsigned long long val);
+ }
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_ORACLE_NUMBER_HXX