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

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

#ifndef SmixmlHPP
#define SmixmlHPP

#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 <Variants.hpp>	// Pascal unit

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

namespace Smixml
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TSMXMLItemKind { ikProperty, ikAttribute, ikComment, ikCDATA };
#pragma option pop

class DELPHICLASS TSMXMLItem;
class DELPHICLASS TSMXMLItems;
class PASCALIMPLEMENTATION TSMXMLItem : public Classes::TComponent
{
	typedef Classes::TComponent inherited;
	
private:
	TSMXMLItemKind FKind;
	System::UnicodeString FTagName;
	System::Variant FValue;
	int FLevel;
	TSMXMLItems* FItems;
	TSMXMLItem* FParentItem;
	
public:
	__fastcall virtual TSMXMLItem(Classes::TComponent* AOwner);
	__fastcall virtual ~TSMXMLItem(void);
	TSMXMLItem* __fastcall GetChild(const System::UnicodeString XMLTag, bool ExpandAllLevels);
	System::UnicodeString __fastcall GetTagXMLValue(void);
	System::UnicodeString __fastcall GetTagValue(void);
	__property TSMXMLItem* ParentItem = {read=FParentItem};
	__property int Level = {read=FLevel, nodefault};
	
__published:
	__property TSMXMLItemKind Kind = {read=FKind, write=FKind, nodefault};
	__property System::UnicodeString TagName = {read=FTagName, write=FTagName};
	__property System::Variant Value = {read=FValue, write=FValue};
	__property TSMXMLItems* Items = {read=FItems, write=FItems};
};


class PASCALIMPLEMENTATION TSMXMLItems : public Classes::TList
{
	typedef Classes::TList inherited;
	
public:
	__fastcall virtual ~TSMXMLItems(void);
	TSMXMLItem* __fastcall AddItem(TSMXMLItem* ParentItem);
	virtual void __fastcall Clear(void);
public:
	/* TObject.Create */ inline __fastcall TSMXMLItems(void) : Classes::TList() { }
	
};


class DELPHICLASS TSMXMLEngine;
class PASCALIMPLEMENTATION TSMXMLEngine : public Classes::TComponent
{
	typedef Classes::TComponent inherited;
	
private:
	TSMXMLItem* FRootItem;
	
protected:
	void __fastcall ParseXMLFromString(const System::UnicodeString Value, int intLength);
	
public:
	__fastcall virtual TSMXMLEngine(Classes::TComponent* AOwner);
	__fastcall virtual ~TSMXMLEngine(void);
	void __fastcall LoadFromStream(Classes::TStream* AStream);
	void __fastcall LoadFromFile(const System::UnicodeString AFileName);
	TSMXMLItem* __fastcall GetItemByTag(TSMXMLItem* Root, const System::UnicodeString XMLTag);
	
__published:
	__property TSMXMLItem* RootItem = {read=FRootItem, write=FRootItem};
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE bool __fastcall SameStrings(bool CaseSensitive, const System::UnicodeString s1, const System::UnicodeString s2);

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

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