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

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

#ifndef InstreamvclbaseHPP
#define InstreamvclbaseHPP

#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 <Inexception.hpp>	// Pascal unit
#include <Inglobal.hpp>	// Pascal unit
#include <Instreamrandomaccess.hpp>	// Pascal unit
#include <Instream.hpp>	// Pascal unit

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

namespace Instreamvclbase
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS EIdEndOfStream;
class PASCALIMPLEMENTATION EIdEndOfStream : public Inexception::EInException 
{
	typedef Inexception::EInException inherited;
	
public:
	#pragma option push -w-inl
	/* EInExceptionBase.Create */ inline __fastcall virtual EIdEndOfStream(AnsiString AMsg)/* overload */ : Inexception::EInException(AMsg) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EIdEndOfStream(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Inexception::EInException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EIdEndOfStream(int Ident)/* overload */ : Inexception::EInException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EIdEndOfStream(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Inexception::EInException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EIdEndOfStream(const AnsiString Msg, int AHelpContext) : Inexception::EInException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EIdEndOfStream(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Inexception::EInException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EIdEndOfStream(int Ident, int AHelpContext)/* overload */ : Inexception::EInException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EIdEndOfStream(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Inexception::EInException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EIdEndOfStream(void) { }
	#pragma option pop
	
};


class DELPHICLASS TInStreamVCLBase;
class PASCALIMPLEMENTATION TInStreamVCLBase : public Instreamrandomaccess::TInStreamRandomAccess 
{
	typedef Instreamrandomaccess::TInStreamRandomAccess inherited;
	
protected:
	bool FFreeStream;
	Classes::TStream* FVCLStream;
	virtual int __fastcall GetPosition(void);
	virtual int __fastcall GetSize(void);
	virtual void __fastcall SetPosition(const int AValue);
	
public:
	__fastcall virtual TInStreamVCLBase(Classes::TStream* AStream, bool AFreeStream);
	__fastcall virtual ~TInStreamVCLBase(void);
	virtual AnsiString __fastcall ReadLn(int AMaxLineLength = 0xffffffff, bool AExceptionIfEOF = false);
	virtual void __fastcall Skip(int ASize);
	__property bool FreeStream = {read=FFreeStream, write=FFreeStream, nodefault};
	__property Classes::TStream* VCLStream = {read=FVCLStream};
};


//-- var, const, procedure ---------------------------------------------------

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

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