// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Oranetuni.pas' rev: 10.00

#ifndef OranetuniHPP
#define OranetuniHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Dateutils.hpp>	// Pascal unit
#include <Clrclasses.hpp>	// Pascal unit
#include <Scktcomp.hpp>	// Pascal unit
#include <Winsock.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Rtlconsts.hpp>	// Pascal unit
#include <Crtypes.hpp>	// Pascal unit
#include <Crfunctions.hpp>	// Pascal unit
#include <Crparser.hpp>	// Pascal unit
#include <Crvio.hpp>	// Pascal unit
#include <Crviotcp.hpp>	// Pascal unit
#include <Memutils.hpp>	// Pascal unit
#include <Oracalluni.hpp>	// Pascal unit
#include <Oraparseruni.hpp>	// Pascal unit
#include <Oranumberuni.hpp>	// Pascal unit
#include <Oradatetimeuni.hpp>	// Pascal unit
#include <Oraintervaluni.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Oranetuni
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS N_1;
class PASCALIMPLEMENTATION N_1 : public Clrclasses::Encoding 
{
	typedef Clrclasses::Encoding inherited;
	
private:
	bool N_2;
	
protected:
	int __fastcall InternalGetBytes(WideChar * Chars, int CharIndex, int N_3, Crtypes::TBytes &Bytes, int ByteIndex, int ByteCount);
	int __fastcall InternalGetChars(const Crtypes::TBytes Bytes, int ByteIndex, int ByteCount, WideChar * Chars, int CharIndex, int N_3);
	
public:
	__fastcall N_1(void);
	virtual int __fastcall GetMaxByteCount(int N_3);
	virtual int __fastcall GetMaxCharCount(int byteCount);
	int __fastcall GetByteCount(char * chars, const int chars_Size, int index, int count);
	int __fastcall GetCharCount(Crtypes::TBytes bytes, int index, int count);
	virtual Crtypes::TBytes __fastcall GetBytes(const AnsiString chars)/* overload */;
	virtual int __fastcall GetBytes(const AnsiString chars, int charIndex, int N_3, Crtypes::TBytes &bytes, int byteIndex)/* overload */;
	virtual Crtypes::TBytes __fastcall GetBytes(const WideString chars)/* overload */;
	virtual int __fastcall GetBytes(const WideString chars, int charIndex, int N_3, Crtypes::TBytes &bytes, int byteIndex)/* overload */;
	virtual WideString __fastcall GetWideString(const Crtypes::TBytes bytes, int index, int count)/* overload */;
	/*         class method */ static N_1* __fastcall N_4(TMetaClass* vmt);
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~N_1(void) { }
	#pragma option pop
	
	
/* Hoisted overloads: */
	
public:
	inline WideString __fastcall  GetWideString(const Crtypes::TBytes bytes){ return Encoding::GetWideString(bytes); }
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool UseDirectLobs;
extern PACKAGE int SDU;
extern PACKAGE int TDU;
extern PACKAGE int __cdecl OCIEnvCreate_(void * &envhpp, unsigned mode, const void * ctxp, const void * malocfp, const void * ralocfp, const void * mfreefp, unsigned xtramemsz, void * usrmempp);
extern PACKAGE int __cdecl OCIErrorGet_(void * hndlp, unsigned recordno, void * sqlstate, int &errcodep, void * N_30, unsigned bufsiz, unsigned htype);
extern PACKAGE int __cdecl OCIHandleAlloc_(void * parenth, void * &hndlpp, unsigned htype, unsigned xtramem_sz, void * usrmempp);
extern PACKAGE int __cdecl OCIHandleFree_(void * hndlp, unsigned htype);
extern PACKAGE int __cdecl OCIDescriptorAlloc_(void * parenth, void * &descpp, unsigned dtype, unsigned xtramem_sz, void * usrmempp);
extern PACKAGE int __cdecl OCIDescriptorFree_(void * descp, unsigned dtype);
extern PACKAGE int __cdecl OCIAttrGet_(void * trgthndlp, unsigned trghndltyp, void * N_5, Oracalluni::pub4 N_6, unsigned N_7, void * N_8);
extern PACKAGE int __cdecl OCIAttrGet2_(void * trgthndlp, unsigned trghndltyp, int &N_5, Oracalluni::pub4 N_6, unsigned N_7, void * N_8);
extern PACKAGE int __cdecl OCIAttrSet_(void * trgthndlp, unsigned trghndltyp, void * N_5, unsigned size, unsigned N_7, void * N_8);
extern PACKAGE int __cdecl OCIAttrSet2_(void * trgthndlp, unsigned trghndltyp, int &N_5, unsigned size, unsigned N_7, void * N_8);
extern PACKAGE int __cdecl OCIParamGet_(void * hndlp, unsigned htype, void * N_8, void * &N_31, unsigned pos);
extern PACKAGE int __cdecl OCIServerAttach_(void * srvhp, void * N_8, void * N_33, int dblink_len, unsigned mode);
extern PACKAGE int __cdecl OCIServerDetach_(void * srvhp, void * N_8, unsigned mode);
extern PACKAGE int __cdecl OCISessionBegin_(void * N_32, void * N_8, void * usrhp, unsigned N_36, unsigned mode);
extern PACKAGE int __cdecl OCISessionEnd_(void * N_32, void * N_8, void * usrhp, unsigned mode);
extern PACKAGE int __cdecl OCIServerVersion_(void * hndlp, void * N_8, void * N_30, unsigned N_34, Byte N_35);
extern PACKAGE int __cdecl OCIBreak_(void * hndlp, void * N_8);
extern PACKAGE int __cdecl OCIPasswordChange_(void * N_32, void * N_8, const void * user_name, unsigned usernm_len, const void * opasswd, unsigned opasswd_len, const void * npasswd, int npasswd_len, unsigned mode);
extern PACKAGE int __cdecl OCITransCommit_(void * N_32, void * N_8, unsigned flags);
extern PACKAGE int __cdecl OCITransRollback_(void * N_32, void * N_8, unsigned flags);
extern PACKAGE int __cdecl OCIStmtExecute_(void * N_32, void * stmtp, void * N_8, unsigned N_37, unsigned rowoff, void * snap_in, void * snap_out, unsigned mode);
extern PACKAGE int __cdecl OCIStmtFetch_(void * stmtp, void * N_8, unsigned N_38, Word orientation, unsigned mode);
extern PACKAGE int __cdecl OCIStmtPrepare_(void * stmtp, void * N_8, void * N_39, unsigned stmt_len, unsigned language, unsigned mode);
extern PACKAGE int __cdecl OCIStmtPrepare2_(void * N_32, void * &stmtp, void * N_8, void * N_39, unsigned stmt_len, void * key, unsigned key_len, unsigned language, unsigned mode);
extern PACKAGE int __cdecl OCIBindByName_(void * stmtp, void * &N_12, void * N_8, void * N_13, int N_14, void * N_15, int N_16, Word N_17, void * N_18, Oracalluni::pub2 N_19, Oracalluni::pub2 rcodep, unsigned N_20, Oracalluni::pub4 N_21, unsigned mode);
extern PACKAGE int __cdecl OCIBindByPos_(void * stmtp, void * &N_12, void * N_8, unsigned N_26, void * N_15, int N_16, Word N_17, void * N_18, Oracalluni::pub2 N_19, Oracalluni::pub2 rcodep, unsigned N_20, Oracalluni::pub4 N_21, unsigned mode);
extern PACKAGE int __cdecl OCIBindArrayOfStruct_(void * bindp, void * N_8, unsigned N_9, unsigned N_10, unsigned N_11, unsigned rcskip);
extern PACKAGE int __cdecl OCIBindDynamic_(void * bindp, void * N_8, void * N_22, void * N_23, void * N_24, void * N_25);
extern PACKAGE int __cdecl OCIDefineByPos_(void * stmtp, void * &N_28, void * N_8, unsigned N_26, void * N_15, int N_16, Word N_17, void * N_18, Oracalluni::pub2 N_29, Oracalluni::pub2 rcodep, unsigned mode);
extern PACKAGE int __cdecl OCIDefineArrayOfStruct_(void * defnp, void * N_8, unsigned N_9, unsigned N_10, unsigned N_27, unsigned rcskip);
extern PACKAGE int __cdecl OCIDefineDynamic_(void * defnp, void * N_8, void * N_24, void * N_25);
extern PACKAGE int __cdecl OCILobCharSetForm_(void * N_40, void * N_8, const void * locp, Byte &N_41);
extern PACKAGE int __cdecl OCILobGetLength_(void * N_32, void * N_8, void * locp, unsigned &N_42);
extern PACKAGE int __cdecl OCILobCreateTemporary_(void * N_32, void * N_8, void * locp, Word N_43, Byte N_41, Byte lobtype, int cache, Word duration);
extern PACKAGE int __cdecl OCILobFreeTemporary_(void * N_32, void * N_8, void * locp);
extern PACKAGE int __cdecl OCILobIsTemporary_(void * N_40, void * N_8, void * locp, BOOL &is_temporary);
extern PACKAGE int __cdecl OCILobLocatorIsInit_(void * N_40, void * N_8, const void * locp, int &N_44);
extern PACKAGE int __cdecl OCILobRead_(void * N_32, void * N_8, void * locp, unsigned &N_45, unsigned N_46, void * N_30, unsigned N_47, void * ctxp, void * cbfp, Word N_43, Byte N_41);
extern PACKAGE int __cdecl OCILobTrim_(void * N_32, void * N_8, void * locp, unsigned newlen);
extern PACKAGE int __cdecl OCILobWrite_(void * N_32, void * N_8, void * locp, unsigned &N_45, unsigned N_46, void * N_30, unsigned N_47, Byte N_48, void * ctxp, void * cbfp, Word N_43, Byte N_41);
extern PACKAGE int __cdecl OCINumberAssign_(void * err, const void * from, void * tonum);
extern PACKAGE int __cdecl OCINumberCmp_(void * err, const void * number1, const void * number2, int &res);
extern PACKAGE int __cdecl OCINumberFromInt_(void * err, __int64 &inum, unsigned inum_length, unsigned inum_s_flag, void * number);
extern PACKAGE int __cdecl OCINumberFromReal_(void * err, double &rnum, unsigned rnum_length, void * number);
extern PACKAGE int __cdecl OCINumberFromText_(void * err, const void * str, unsigned str_length, const void * fmt, unsigned fmt_length, const void * nls_params, unsigned nls_p_length, void * number);
extern PACKAGE int __cdecl OCINumberToInt_(void * err, void * number, unsigned rsl_length, unsigned rsl_flag, __int64 &rsl);
extern PACKAGE int __cdecl OCINumberToReal_(void * err, const void * number, unsigned rsl_length, double &rsl);
extern PACKAGE int __cdecl OCINumberToText_(void * err, void * number, const void * fmt, unsigned fmt_length, const void * nls_params, unsigned nls_p_length, unsigned &buf_size, void * N_49);
extern PACKAGE int __cdecl OCINumberFromBCD_(void * err, Crtypes::TBytes rnum, unsigned rnum_length, void * number);
extern PACKAGE int __cdecl OCINumberToBCD_(void * err, const void * number, unsigned rsl_length, void *rsl);
extern PACKAGE int __cdecl OCIDateTimeAssign_(void * hndl, void * err, void * src, void * dst);
extern PACKAGE int __cdecl OCIDateTimeCheck_(void * hndl, void * err, void * date, unsigned &valid);
extern PACKAGE int __cdecl OCIDateTimeCompare_(void * hndl, void * err, const void * date1, const void * date2, int &res);
extern PACKAGE int __cdecl OCIDateTimeConstruct_(void * hndl, void * err, void * datetime, short year, Byte month, Byte day, Byte hour, Byte min, Byte sec, unsigned fsec, void * timezone, int timezone_length);
extern PACKAGE int __cdecl OCIDateTimeFromText_(void * hndl, void * err, void * date_str, int d_str_length, void * fmt, Byte fmt_length, void * lang_name, int lang_length, void * date);
extern PACKAGE int __cdecl OCIDateTimeToText_(void * hndl, void * err, void * date, void * fmt, Byte fmt_length, Byte fsprec, void * lang_name, int lang_length, unsigned &buf_size, void * N_49);
extern PACKAGE int __cdecl OCIDateTimeGetDate_(void * hndl, void * err, void * date, short &year, Byte &month, Byte &day);
extern PACKAGE int __cdecl OCIDateTimeGetTime_(void * hndl, void * err, void * datetime, Byte &hour, Byte &minute, Byte &sec, unsigned &fsec);
extern PACKAGE int __cdecl OCIDateTimeGetTimeZoneOffset_(void * hndl, void * err, void * datetime, Shortint &hour, Shortint &minute);
extern PACKAGE int __cdecl OCIDateTimeGetTimeZoneName_(void * hndl, void * err, void * datetime, Oracalluni::pub1 N_49, unsigned &N_50);
extern PACKAGE int __cdecl OCIIntervalAssign_(void * hndl, void * err, void * ininter, void * outinter);
extern PACKAGE int __cdecl OCIIntervalCheck_(void * hndl, void * err, void * inter, unsigned &valid);
extern PACKAGE int __cdecl OCIIntervalCompare_(void * hndl, void * err, void * inter1, void * inter2, int &res);
extern PACKAGE int __cdecl OCIIntervalFromText_(void * hndl, void * err, void * inpstr, int str_len, void * res);
extern PACKAGE int __cdecl OCIIntervalToText_(void * hndl, void * err, void * inter, Byte lfprec, Byte fsprec, void * buffer, unsigned N_50, unsigned &resultlen);
extern PACKAGE int __cdecl OCIIntervalSetYearMonth_(void * hndl, void * err, int yr, int mnth, void * res);
extern PACKAGE int __cdecl OCIIntervalGetYearMonth_(void * hndl, void * err, int &yr, int &mnth, void * res);
extern PACKAGE int __cdecl OCIIntervalSetDaySecond_(void * hndl, void * err, int dy, int hr, int mm, int ss, int fsec, void * res);
extern PACKAGE int __cdecl OCIIntervalGetDaySecond_(void * hndl, void * err, int &dy, int &hr, int &mm, int &ss, int &fsec, void * res);
extern PACKAGE int __cdecl OCIIntervalFromNumber_(void * hndl, void * err, void * interval, void * number);
extern PACKAGE int __cdecl OCIRowidToChar_(void * rowidDesc, void * outbfp, Word &outbflp, void * N_8);

}	/* namespace Oranetuni */
using namespace Oranetuni;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Oranetuni
