00001 #if !defined(_OTL_UTILS_HPP) 00002 #define _OTL_UTILS_HPP 00003 //============================================================================= 00004 // 00005 // XDFLengine library 00006 // 00007 //----------------------------------------------------------------------------- 00008 // OTL_UTILS.HPP 00009 //----------------------------------------------------------------------------- 00015 //_____________________________________________________________________________ 00016 // 00017 // Copyright (C) 2003 Guillaume Baurand. All Rights Reserved. 00018 // 00019 // This file is part of the XDFLengine project. 00020 // 00021 // The XDFLengine is free software; you can redistribute it and/or modify 00022 // it under the terms of the GNU General Public License as published by 00023 // the Free Software Foundation; either version 2 of the License, or 00024 // (at your option) any later version. 00025 // 00026 // This program is distributed in the hope that it will be useful, 00027 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00028 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00029 // GNU General Public License for more details. 00030 // 00031 // You should have received a copy of the GNU General Public License 00032 // along with this program; if not, write to the Free Software 00033 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00034 // USA. 00035 // 00036 // For more information, 00037 // contact : guillaume@baurand.net 00038 // or visit : http://xdflengine.sourceforge.net 00039 // 00040 //============================================================================= 00041 00042 # include "otl/otlv4.h" 00043 # include "config/commonincs.hpp" 00044 00045 00046 00047 BEGIN_XDFLENGINE_NS 00048 00049 00050 //_________________________________________________________________________ 00051 // OTL_OPENDATASTREAM 00052 //------------------------------------------------------------------------- 00053 XDFLENGINE_EXPORT otl_stream* OTL_openDataStream(const char* p_pszSQLStatement, otl_connect* p_pConnection,unsigned int p_uiBufSize); 00054 00055 //_________________________________________________________________________ 00056 // OTL_RELEASEDATASTREAM 00057 //------------------------------------------------------------------------- 00058 XDFLENGINE_EXPORT void OTL_releaseDataStream(otl_stream* p_pOTLStream); 00059 00060 //_________________________________________________________________________ 00061 // OTL_INSERTINVAR 00062 //------------------------------------------------------------------------- 00063 XDFLENGINE_EXPORT void OTL_insertInVar(otl_stream* p_pOTLStream, int p_intOTLType, const char* p_pszVarValue); 00064 00065 00066 //_________________________________________________________________________ 00067 // OTL_GETCOLUMBINDTYPE 00068 //------------------------------------------------------------------------- 00069 XDFLENGINE_EXPORT char* OTL_getColumBindType(const char* p_pszFieldDBSpec, unsigned int p_uiSQLSyntax) ; 00070 00071 00072 //_________________________________________________________________________ 00073 // OTL_GETCOLUMNDDL 00074 //------------------------------------------------------------------------- 00075 XDFLENGINE_EXPORT char* OTL_getColumnDDL(const char* p_pszFieldDBSpec, unsigned int p_uiSQLSyntax); 00076 00077 00078 END_XDFLENGINE_NS 00079 00080 00081 00082 #endif 00083