System.Classes.TParser.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

constructor Create(Stream: TStream; AOnError: TParserErrorEvent = nil); overload;
constructor Create(Stream: TStream; const FormatSettings: TFormatSettings; AOnError: TParserErrorEvent = nil); overload;

C++

__fastcall TParser(TStream* Stream, TParserErrorEvent AOnError)/* overload */;
__fastcall TParser(TStream* Stream, const System::Sysutils::TFormatSettings &FormatSettings, TParserErrorEvent AOnError)/* overload */;

プロパティ

種類 可視性 ソース ユニット
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes TParser


説明

TParser クラスのインスタンスを作成(Create)します。

実行時に TParser オブジェクトをインスタンス化するには、Create を呼び出します。

解析対象のファイルは、Stream で定義します。オプションの AOnError には、解析エラーが発生した場合に呼び出されるオブジェクト メソッドを指定します。このメソッドから戻った後に、やはり例外が発生します。

FormatSettings レコード パラメータでは、地域依存の形式の設定を定義します(解析中に使用する小数点の記号など)。

関連項目