/******************************************************************************
 GAddressScanner.h

	Interface for the GAddressScanner class.

	Copyright © 1998 by Glenn W. Bach.  All rights reserved.
	
	Base code generated by Codemill v0.1.0

 *****************************************************************************/


#ifndef _H_GAddressScanner
#define _H_GAddressScanner

// Superclass Header
#ifndef GASOK
#undef yyFlexLexer
#define yyFlexLexer GASFlexLexer
#include <FlexLexer.h>
#endif

#include <JString.h>
#include <JPtrArray.h>

#include <jTypes.h>

class GAddressScanner : public GASFlexLexer
{
public:

	GAddressScanner(const JCharacter* text, JPtrArray<JString>* list);
	virtual ~GAddressScanner();

	int yylex();

protected:

	virtual int LexerInput( char* buf, int max_size );

private:

	JString 			itsInputBuffer;
	JSize   		 	itsBytesRead;
	JString*			itsString; // we don't own this
	JPtrArray<JString>*	itsList; // we don't own this

private:

	// not allowed

	GAddressScanner(const GAddressScanner& source);
	const GAddressScanner& operator=(const GAddressScanner& source);
};

#endif
