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

// (DO NOT EDIT: machine generated header) 'uecWKTParser.pas' rev: 37.00 (Windows)

#ifndef uecWKTParserHPP
#define uecWKTParserHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <uecWKTObjects.hpp>

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

namespace Uecwktparser
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS EWKTParseException;
class DELPHICLASS TWKTParser;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION EWKTParseException : public System::Sysutils::Exception
{
	typedef System::Sysutils::Exception inherited;
	
public:
	/* Exception.Create */ inline __fastcall EWKTParseException(const System::UnicodeString Msg) : System::Sysutils::Exception(Msg) { }
	/* Exception.CreateFmt */ inline __fastcall EWKTParseException(const System::UnicodeString Msg, const System::TVarRec *Args, const System::NativeInt Args_High) : System::Sysutils::Exception(Msg, Args, Args_High) { }
	/* Exception.CreateRes */ inline __fastcall EWKTParseException(System::NativeUInt Ident)/* overload */ : System::Sysutils::Exception(Ident) { }
	/* Exception.CreateRes */ inline __fastcall EWKTParseException(System::PResStringRec ResStringRec)/* overload */ : System::Sysutils::Exception(ResStringRec) { }
	/* Exception.CreateResFmt */ inline __fastcall EWKTParseException(System::NativeUInt Ident, const System::TVarRec *Args, const System::NativeInt Args_High)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_High) { }
	/* Exception.CreateResFmt */ inline __fastcall EWKTParseException(System::PResStringRec ResStringRec, const System::TVarRec *Args, const System::NativeInt Args_High)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_High) { }
	/* Exception.CreateHelp */ inline __fastcall EWKTParseException(const System::UnicodeString Msg, int AHelpContext) : System::Sysutils::Exception(Msg, AHelpContext) { }
	/* Exception.CreateFmtHelp */ inline __fastcall EWKTParseException(const System::UnicodeString Msg, const System::TVarRec *Args, const System::NativeInt Args_High, int AHelpContext) : System::Sysutils::Exception(Msg, Args, Args_High, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall EWKTParseException(System::NativeUInt Ident, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, AHelpContext) { }
	/* Exception.CreateResHelp */ inline __fastcall EWKTParseException(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall EWKTParseException(System::PResStringRec ResStringRec, const System::TVarRec *Args, const System::NativeInt Args_High, int AHelpContext)/* overload */ : System::Sysutils::Exception(ResStringRec, Args, Args_High, AHelpContext) { }
	/* Exception.CreateResFmtHelp */ inline __fastcall EWKTParseException(System::NativeUInt Ident, const System::TVarRec *Args, const System::NativeInt Args_High, int AHelpContext)/* overload */ : System::Sysutils::Exception(Ident, Args, Args_High, AHelpContext) { }
	/* Exception.Destroy */ inline __fastcall virtual ~EWKTParseException() { }
	
};

#pragma pack(pop)

#pragma pack(push,4)
class PASCALIMPLEMENTATION TWKTParser : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	System::UnicodeString FWKT;
	int FPos;
	void __fastcall SkipWhitespace();
	System::UnicodeString __fastcall GetNextToken();
	void __fastcall ExpectToken(const System::UnicodeString Token);
	bool __fastcall TryParseDouble(/* out */ double &Value);
	bool __fastcall IsNextToken(const System::UnicodeString AToken);
	Uecwktobjects::TWKTGeometry* __fastcall ParseInternal();
	Uecwktobjects::TWKTPointF __fastcall ParsePointCoords();
	Uecwktobjects::TLineStringWKT __fastcall ParseLineStringText();
	Uecwktobjects::TPolygonWKT __fastcall ParsePolygonText();
	Uecwktobjects::TLineStringWKT __fastcall ParseMultiPointText();
	Uecwktobjects::TALineStringWKT __fastcall ParseMultiLineStringText();
	Uecwktobjects::TAPolygonWKT __fastcall ParseMultiPolygonText();
	Uecwktobjects::TWKTGeometryCollection* __fastcall ParseGeometryCollectionText();
	
public:
	Uecwktobjects::TWKTGeometry* __fastcall Parse(const System::UnicodeString AWKT);
public:
	/* TObject.Create */ inline __fastcall TWKTParser() : System::TObject() { }
	/* TObject.Destroy */ inline __fastcall virtual ~TWKTParser() { }
	
};

#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
}	/* namespace Uecwktparser */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UECWKTPARSER)
using namespace Uecwktparser;
#endif
#pragma pack(pop)
#pragma option pop

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