X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdbms.oracle%2FOutputBind.hpp;fp=include%2Fanna%2Fdbms.oracle%2FOutputBind.hpp;h=0000000000000000000000000000000000000000;hb=851ff2962362fd5bad874e8ed91445b296eaca24;hp=ce41a22701195c0bebbc28b536908e6ac247822e;hpb=78be86969d2f26a9084b0c4af6ce43d5fa4ed3fd;p=anna.git diff --git a/include/anna/dbms.oracle/OutputBind.hpp b/include/anna/dbms.oracle/OutputBind.hpp deleted file mode 100644 index ce41a22..0000000 --- a/include/anna/dbms.oracle/OutputBind.hpp +++ /dev/null @@ -1,58 +0,0 @@ -// ANNA - Anna is Not Nothingness Anymore // -// // -// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo // -// // -// See project site at http://redmine.teslayout.com/projects/anna-suite // -// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE // - - -#ifndef anna_dbms_oracle_OutputBind_hpp -#define anna_dbms_oracle_OutputBind_hpp - -#include - -#include - -struct OCIDefine; - -namespace anna { - -namespace dbms { - -class Statement; - -namespace oracle { - -class OutputBind : public dbms::OutputBind, public BaseBind { -public: - OutputBind(const char* name, dbms::Data& data); - ~OutputBind(); - -private: - OCIDefine* a_ociDefine; - - void decode() const throw(anna::RuntimeException); - void prepare(dbms::Statement*, dbms::Connection*, const int pos) throw(DatabaseException); - void release(dbms::Statement*) throw() { a_ociDefine = NULL; } - - void decodeFloat(dbms::Data&) const throw(RuntimeException); - void decodeShortBlock(dbms::Data&) const throw(RuntimeException); - void decodeLongBlock(dbms::Data&) const throw(RuntimeException); - void decodeDate(dbms::Data&) const throw(RuntimeException, DatabaseException); - - void do_write(const dbms::LongBlock&) const throw(RuntimeException, dbms::DatabaseException); - - static unsigned char asByte(const char hex) - throw() { - return (hex >= '0' && hex <= '9') ? (hex - '0') : ((hex - 'A') + 0x0a); - } - - friend class Statement; -}; - -} -} -} - -#endif -