X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=include%2Fanna%2Fdbms.mysql%2FOutputBind.hpp;fp=include%2Fanna%2Fdbms.mysql%2FOutputBind.hpp;h=0000000000000000000000000000000000000000;hb=851ff2962362fd5bad874e8ed91445b296eaca24;hp=72e9929b62f1cee0c2d09d3c5809bafc25b6cf16;hpb=78be86969d2f26a9084b0c4af6ce43d5fa4ed3fd;p=anna.git diff --git a/include/anna/dbms.mysql/OutputBind.hpp b/include/anna/dbms.mysql/OutputBind.hpp deleted file mode 100644 index 72e9929..0000000 --- a/include/anna/dbms.mysql/OutputBind.hpp +++ /dev/null @@ -1,68 +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_mysql_OutputBind_hpp -#define anna_dbms_mysql_OutputBind_hpp - -#include - -#include -#include - -#include - -namespace anna { - -class DataBlock; - -namespace dbms { - -class Statement; - -namespace mysql { - -class OutputBind : public dbms::OutputBind, public BaseBind { -public: - OutputBind(const char* name, dbms::Data& data); - ~OutputBind(); - -private: - struct Blob { - DataBlock buffer; - st_mysql_stmt* stmt; - st_mysql_bind* binds; - int pos; - - Blob(); - }; - - Blob* a_blob; - - void decodeLongBlob(dbms::Data&) const throw(RuntimeException, dbms::DatabaseException); - void decodeDate(dbms::Data&) throw(); - - static unsigned char asByte(const char hex) - throw() { - return (hex >= '0' && hex <= '9') ? (hex - '0') : ((hex - 'A') + 0x0a); - } - - /* Funciones virtuales puras */ - void decode() const throw(RuntimeException); - void prepare(anna::dbms::Statement*, anna::dbms::Connection*, const int pos) throw(RuntimeException); - void release(anna::dbms::Statement*) throw() {;} - void do_write(const dbms::LongBlock&) const throw(RuntimeException, dbms::DatabaseException); - - friend class Statement; -}; - -} -} -} - -#endif -