// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Smi2ds.pas' rev: 21.00

#ifndef Smi2dsHPP
#define Smi2dsHPP

#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 <Db.hpp>	// Pascal unit
#include <Smibase.hpp>	// Pascal unit

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

namespace Smi2ds
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TSMImportFromDataSet;
class PASCALIMPLEMENTATION TSMImportFromDataSet : public Smibase::TSMImportBaseComponent
{
	typedef Smibase::TSMImportBaseComponent inherited;
	
private:
	Db::TDataSet* FSourceDataset;
	
protected:
	virtual void __fastcall BeforeImport(void);
	virtual void __fastcall GoFirst(void);
	virtual void __fastcall GoNext(void);
	virtual bool __fastcall NeedMore(void);
	virtual int __fastcall GetTotalCount(void);
	virtual System::Variant __fastcall GetFieldValue(const System::Variant &v);
	virtual bool __fastcall NotDefined(System::UnicodeString &strProperty);
	
public:
	virtual void __fastcall DetectAutoMapping(void);
	
__published:
	__property Db::TDataSet* SourceDataset = {read=FSourceDataset, write=FSourceDataset};
public:
	/* TSMImportBaseComponent.Create */ inline __fastcall virtual TSMImportFromDataSet(Classes::TComponent* AOwner) : Smibase::TSMImportBaseComponent(AOwner) { }
	/* TSMImportBaseComponent.Destroy */ inline __fastcall virtual ~TSMImportFromDataSet(void) { }
	
};


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

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

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