System.Classes.TParser.Create
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 レコード パラメータでは、地域依存の形式の設定を定義します(解析中に使用する小数点の記号など)。