Difference between revisions of "tiOPF/ja"

From Free Pascal wiki
Jump to navigationJump to search
 
(10 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
  
=== About ===
+
=== 概要 ===
The TechInsite Object Persistence Framework (tiOPF) is an Open Source framework of Delphi/Object Pascal code that simplifies the mapping of an object oriented business model into a relational database. The framework is mature and robust. It has been in use on production sites for over seven years. It is free, open source, and available for immediate download with full source code.
+
The TechInsite のオブジェクト永続化フレームワーク(tiOPF)は、オブジェクト指向のビジネスモデルをリレーショナルデータベースにマッピングするのを簡単にするための、オープンソースのフレームワークです。
  
Some of the key features of the tiOPF include:
+
このフレームワークは充分利用され、安定しています。このフレームワークは、7年以上、製品に利用されている実績があります。これは、完全に自由であり、オープンソースで、すぐに全てのソースがダウンロードできて利用ができます。
  
* Lets you build an object oriented application that can swap databases with the flick of a command like a command line parameter or a change of a compiler directive. Currently, there are persistence layers for Interbase-IBX, Oracle-DOA, XML-MSDOM, XML-XMLLite, Paradox-BDE, MSAccess-ADO, MSSQLServer-ADO, FireBird-FBLib, FireBird-SqlDB, HTTP Proxy-Remote, CSV files and TAB files.
+
いくつかの主要なtiOPFがもつ機能は次の通りです。
* Family of abstract base classes for building a complex object model
 
* 27 Persistent object aware components for building complex GUIs (Delphi only).
 
* Model-GUI-Mediators for enabling any standard GUI component to become Object Aware.
 
* 1400+ DUnit/fpcUnit tests to guarantee stability
 
* 160 pages of documentation to get you started
 
* News groups for support
 
* Automated, daily builds and unit testing
 
* Lots of demos focusing on specific parts of the framework for easy learning.
 
* Cross platform. Currently tested on Windows and Linux.
 
  
=== Authors ===
+
* 簡単なコンパイラ指示をおこない、コマンドラインパラメータのコマンドをちょっとたたくだけで、オブジェクトと、データベース間の読み出しや保存がおこなえるオブジェクト指向アプリケーションを作ることができます。現在は、Interbase-IBX、Oracle-DOA, XML-MSDOM, XML-XMLLite, Paradox-BDE, MSAccess-ADO, MSSQLServer-ADO, FireBird-FBLib, FireBird-SqlDB, HTTP Proxy-Remote, CSV ファイル , TAB ファイル への永続化レイヤーが存在します。
Peter Hinrichsen - Original Developer.<br>
+
* 複雑なオブジェクトモデル構築のための、抽象基底クラスのセット
[[User:ggeldenhuys|Graeme Geldenhuys]] - Ported to Free Pascal.
+
* 複雑なGUIを作るために用意された、27個のオブジェクトアウェアのための永続化コンポーネント
 +
* 標準のGUIコンポーネントをオブジェクトアウェアにするための、Model-GUI間の仲介オブジェクト
 +
* 1400以上の DUnit/fpcUnitによる品質保証をおこなうテスト
 +
* 最初にはじめるための160ページの文書
 +
* サポート用ニュースグループ
 +
* デイリービルドとユニットテストが、自動化されています。
 +
* 特定の機能のパーツに絞った多くのデモのおかげで学びやすい。
 +
* Windows と Linuxでテストされた、クロスプラットホームフレームワーク
  
=== License ===
+
=== 著者 ===
[http://opensource.org/licenses/mozilla1.1.php Mozilla Public License 1.1] (please contact the author if the MPL doesn't work with your project licensing)
+
Peter Hinrichsen - オリジナルの開発者<br>
 +
[[User:ggeldenhuys|Graeme Geldenhuys]] - Free Pascalへの移植
  
=== Download ===
+
=== ライセンス ===
The latest stable release can be found on the [http://download.tiopf.com/ tiOPF Download] page.<br>
+
[http://opensource.org/licenses/mozilla1.1.php Mozilla Public License 1.1] (あなたのプロジェクトのライセンスにMPLがあわない場合は著者に連絡してみてください。)
The latest development code can be found on the SubVersion server as follows
 
<tt>svn co <nowiki>https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk</nowiki> Source</tt>
 
  
'''NOTE:'''
+
=== ダウンロード ===
The tiOPF project has just release version 2.3. Currently the download page only has a Windows release available. Hopefully soon a platform independent download will be made available. The latest code can be downloaded from SubVersion though.
+
最新の安定リリース版は[http://download.tiopf.com/ tiOPF Download] のページにあります。<br>
 +
最新の開発コードは次のSubversionサーバーにあります。
 +
<tt>svn co <nowiki>https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk</nowiki> ソースコード</tt>
  
An easy way to get the code, is to use the command line svn client as follows. The commands below will checkout the ''Source'', ''Demos'' and ''Docs'' directories of tiOPF version 2.
+
'''注意:'''
 +
tiOPFプロジェクトは現在2.3をリリースしています。現在、ダウンロードページはWindows用のリリースのみが利用できます。願わくば、プラットホーム独立にダウンロードができるようになってほしいものです。しなしながら最新のコードは、Subversionから取得できます。
 +
 
 +
簡単な方法はsvnコマンドラインプロンプトで次のようにしてください。次のコマンドでtiOPF Version2から''Source''''Demos''と  ''Docs'' をチェックアウトします。
  
 
   mkdir tiOPF2
 
   mkdir tiOPF2
Line 44: Line 46:
 
   <tt>svn co <nowiki>https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Docs</nowiki> Docs</tt>
 
   <tt>svn co <nowiki>https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Docs</nowiki> Docs</tt>
  
Try and keep the above directory layout.  It is much easier to support and the documentation build scripts will work without modification.  The Source checkout will download some external links. Most of them are only related to Delphi, but there is one directory called FBLib which is required for the FBLib (Firebird RDMS) support. tiOPF requires a slightly modified version of FBLib 0.85 that adds some extra feature which will hopefully make it into the next FBLib release.
+
上のディレクトリレイアウトを保持するようにしてください。変更がなければ、ドキュメントの生成やサポートがとても簡単におこなえます。ソースのチェックアウトはいくつかの外部リンクをダウンロードします。それらのほとんどは、Delphiだけに関係することですが、FBLibと呼ばれるFirebirdをサポートするライブラリが必要な場合があります。
 
+
tiOPFはFBLib0.85に、いくつかの追加機能など若干変更を必要とします。それらの変更が、次のFBLibのリリースで反映されるとうれしいのですが。
=== Dependencies / System Requirements ===
 
* Compiler: Free Pascal 2.0.4 (FPC 2.1.1 though more risky, also works. It is used for the nighly builds under Linux).
 
* Components for your required persistence layer, if it is not included with the compiler. eg: FBLib for FireBird RDMS.
 
  
Status: Stable (Tested on Windows and Linux.)
+
=== 依存関係 / システム要件 ===
 +
* コンパイラ: Free Pascal 2.0.4 (FPC 2.1.1 以上はリスクがあるかもしれませんが、動作します。Linuxでのnightly buildsに利用されています。
 +
* コンパイラに含まれていないものは、永続化レイヤのためのコンポーネント 例: FireBird のためのFBLibなど。
  
IssuesNone
+
状態安定 (Windows と Linuxでテストされています.)
 +
問題点:  なし
  
=== Installation ===
+
=== インストール方法 ===
==== The Packages ====
+
==== パッケージ ====
 +
Source\Compilers\FPCディレクトリの中に、4個のパッケージがあります。
 
Inside the Source\Compilers\FPC directory there are four packages.
 
Inside the Source\Compilers\FPC directory there are four packages.
; tiOPF : Core units (run-time only package)
+
; tiOPF : 中心となるユニットです。(実行時のみのパッケージ)
; tiOPFGUI : GUI related units and components (run-time only package).
+
; tiOPFGUI : GUIに関連するユニットとコンポーネントです。 (実行時のみのパッケージ)
; tiOPFGUIDsgn : Registers/Installs the components into the Lazarus component palette (design-time only package). The GUI components used under Lazarus are still experimental and under heavy development. It is recommended to get frequent updates from SubVersion if they are going to be used.
+
; tiOPFGUIDsgn : Lazarusのコンポーネントパレットにインストール、登録して使います。(設計時のみのパッケージ).Lazarus環境でのこのGUIコンポーネントは まだ実験的な段階であり、開発途上のものです。もし使うならば、Subversionで時々アップデートするほうが良いでしょう。
; tiOPFHelpIntegration : Integrates the fpdoc generated help files into Lazarus's help system (design-time only package)
+
; tiOPFHelpIntegration : ヘルプファイルから作られたfpdocをLazarusのヘルプシステムに統合します。(設計時のみのパッケージ)
  
==== The Setup ====
+
==== セットアップ ====
* Unzip the zip file or check out the source from SubVersion to a location of your choice.
+
* zipファイルを解凍するか、ソースコードをSubversionから好きな場所へチェックアウトします。
* Open Lazarus
+
* Lazarusを開きます。
* Open the package ''tiOPF.lpk'' with Component/Open package file (.lpk) located in the Source\Compilers\FPC directory.
+
* Component/Open package file (.lpk)で、Source\Compilers\FPCディレクトリにある''tiOPF.lpk''パッケージを開きます。
* Click on Compile
+
* Compileをクリックします。
* Open the ''tiOPFGUI.lpk'' package and click Compile
+
* ''tiOPFGUI.lpk''パッケージを同様に開いてCompileをクリックします。
  
Optional
+
追加事項
  
* Open the ''tiOPFGUIDsgn.lpk'' package and click Compile and then Install (Lazarus should rebuild and restart).
+
* ''tiOPFGUIDsgn.lpk''パッケージを開いて、Compileをクリックし、インストールします。(Lazarusがリビルドされて再起動します。)
* Open the ''tiOPFHelpIntegration.lpk'' package and click Compile and the Install (Lazarus should rebuild and restart).
+
* ''tiOPFHelpIntegration.lpk'' パッケージを開いて、Compileをクリックし、インストールします。(Lazarusがリビルドされて再起動します。)
  
<u>NOTE #1</u><br>
+
<u>注意事項ノート その1</u><br>
I included the [http://fblib.altervista.org/ FBLib Firebird Library] components as the default persistence layer for Free Pascal in the tiOPF.lpk package.  That is the only one I use under  Free Pascal/Lazarus.  So make sure you have FBLib installed, or you need to remove it from the tiOPF package.
+
私は[http://fblib.altervista.org/ FBLib Firebird Library]コンポーネントをFreePascalのtiOPF.lpkパッケージのデフォルトの永続化レイヤとしてインストールしました。 それを唯一、FreePascal/Lazarusで利用しているにすぎません。もし、FBLibをすでにインストールしているならば、tiOPFパッケージからそれを削除しなくてはなりません。
  
Persistence layers are controlled by a Compiler Directive under ''Compiler Options'' -> ''Other'' -> ''Custom Options''. eg: The LINK_FBL directive relates to the FBLib components.
+
永続化レイヤーは次のようにコンパイラ指令によって制御されます。
For all the available options see the end of the ''tiOPFManager.pas'' unit.
+
''Compiler Options'' -> ''Other'' -> ''Custom Options''.  
 +
例えば、 LINK_FBL指令がFBLib コンポーネントに関係します。
 +
すべての利用できるオプションは、''tiOPFManager.pas''ユニットの最後の部分を見てください。
  
<u>NOTE #2</u><br>
+
<u>注意事項ノート その2</u><br>
For the Integrated Help to work, Lazarus needs to know how to find the html help files. Please read the ''tiOPFHelpIntegration.txt'' file located in \Source\Compilers\FPC for further instructions.
+
統合ヘルプを動作させるには、Lazarusがhtmlヘルプファイルを見つけられるようにします。詳しい情報は、\Source\Compilers\FPC にある''tiOPFHelpIntegration.txt''を読んでください。
  
=== Usage ===
+
=== 使い方 ===
In Lazarus, open your project and add tiOPF as a Required Package ''(Project -> Project Inspector -> Add)''.  Include ''tiObject'' in your uses clause.
+
Lazarusで、あなたの作成しているプロジェクトを開いて、必要とするパッケージにtiOPFを加えます。''(Project -> Project Inspector -> Add)''.  それから、''tiObject''を利用するユニットのuses節に加えてください。
You are now ready to create objects descending from TtiObject or TtiObjectList.
+
これで、TtiObjectかTtiObjectListから派生したオブジェクトを作る準備ができました。
  
See the example projects in the Demos directory for additional examples.
+
いろんなお手本となるプロジェクトは、Demosディレクトリにあります。

Latest revision as of 05:16, 6 January 2008

Deutsch (de) English (en) italiano (it) 日本語 (ja)

日本語版メニュー
メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報


概要

The TechInsite のオブジェクト永続化フレームワーク(tiOPF)は、オブジェクト指向のビジネスモデルをリレーショナルデータベースにマッピングするのを簡単にするための、オープンソースのフレームワークです。

このフレームワークは充分利用され、安定しています。このフレームワークは、7年以上、製品に利用されている実績があります。これは、完全に自由であり、オープンソースで、すぐに全てのソースがダウンロードできて利用ができます。

いくつかの主要なtiOPFがもつ機能は次の通りです。

  • 簡単なコンパイラ指示をおこない、コマンドラインパラメータのコマンドをちょっとたたくだけで、オブジェクトと、データベース間の読み出しや保存がおこなえるオブジェクト指向アプリケーションを作ることができます。現在は、Interbase-IBX、Oracle-DOA, XML-MSDOM, XML-XMLLite, Paradox-BDE, MSAccess-ADO, MSSQLServer-ADO, FireBird-FBLib, FireBird-SqlDB, HTTP Proxy-Remote, CSV ファイル , TAB ファイル への永続化レイヤーが存在します。
  • 複雑なオブジェクトモデル構築のための、抽象基底クラスのセット
  • 複雑なGUIを作るために用意された、27個のオブジェクトアウェアのための永続化コンポーネント
  • 標準のGUIコンポーネントをオブジェクトアウェアにするための、Model-GUI間の仲介オブジェクト
  • 1400以上の DUnit/fpcUnitによる品質保証をおこなうテスト
  • 最初にはじめるための160ページの文書
  • サポート用ニュースグループ
  • デイリービルドとユニットテストが、自動化されています。
  • 特定の機能のパーツに絞った多くのデモのおかげで学びやすい。
  • Windows と Linuxでテストされた、クロスプラットホームフレームワーク

著者

Peter Hinrichsen - オリジナルの開発者
Graeme Geldenhuys - Free Pascalへの移植

ライセンス

Mozilla Public License 1.1 (あなたのプロジェクトのライセンスにMPLがあわない場合は著者に連絡してみてください。)

ダウンロード

最新の安定リリース版はtiOPF Download のページにあります。
最新の開発コードは次のSubversionサーバーにあります。

svn co https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk ソースコード

注意: tiOPFプロジェクトは現在2.3をリリースしています。現在、ダウンロードページはWindows用のリリースのみが利用できます。願わくば、プラットホーム独立にダウンロードができるようになってほしいものです。しなしながら最新のコードは、Subversionから取得できます。

簡単な方法はsvnコマンドラインプロンプトで次のようにしてください。次のコマンドでtiOPF Version2からSourceDemosDocs をチェックアウトします。

 mkdir tiOPF2
 cd tiOPF2
 svn co https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk Source
 svn co https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Demos Demos
 svn co https://tiopf.svn.sourceforge.net/svnroot/tiopf/tiOPF2_Docs Docs

上のディレクトリレイアウトを保持するようにしてください。変更がなければ、ドキュメントの生成やサポートがとても簡単におこなえます。ソースのチェックアウトはいくつかの外部リンクをダウンロードします。それらのほとんどは、Delphiだけに関係することですが、FBLibと呼ばれるFirebirdをサポートするライブラリが必要な場合があります。 tiOPFはFBLib0.85に、いくつかの追加機能など若干変更を必要とします。それらの変更が、次のFBLibのリリースで反映されるとうれしいのですが。

依存関係 / システム要件

  • コンパイラ: Free Pascal 2.0.4 (FPC 2.1.1 以上はリスクがあるかもしれませんが、動作します。Linuxでのnightly buildsに利用されています。
  • コンパイラに含まれていないものは、永続化レイヤのためのコンポーネント 例: FireBird のためのFBLibなど。

状態: 安定 (Windows と Linuxでテストされています.) 問題点: なし

インストール方法

パッケージ

Source\Compilers\FPCディレクトリの中に、4個のパッケージがあります。 Inside the Source\Compilers\FPC directory there are four packages.

tiOPF
中心となるユニットです。(実行時のみのパッケージ)
tiOPFGUI
GUIに関連するユニットとコンポーネントです。 (実行時のみのパッケージ)
tiOPFGUIDsgn
Lazarusのコンポーネントパレットにインストール、登録して使います。(設計時のみのパッケージ).Lazarus環境でのこのGUIコンポーネントは まだ実験的な段階であり、開発途上のものです。もし使うならば、Subversionで時々アップデートするほうが良いでしょう。
tiOPFHelpIntegration
ヘルプファイルから作られたfpdocをLazarusのヘルプシステムに統合します。(設計時のみのパッケージ)

セットアップ

  • zipファイルを解凍するか、ソースコードをSubversionから好きな場所へチェックアウトします。
  • Lazarusを開きます。
  • Component/Open package file (.lpk)で、Source\Compilers\FPCディレクトリにあるtiOPF.lpkパッケージを開きます。
  • Compileをクリックします。
  • tiOPFGUI.lpkパッケージを同様に開いてCompileをクリックします。

追加事項

  • tiOPFGUIDsgn.lpkパッケージを開いて、Compileをクリックし、インストールします。(Lazarusがリビルドされて再起動します。)
  • tiOPFHelpIntegration.lpk パッケージを開いて、Compileをクリックし、インストールします。(Lazarusがリビルドされて再起動します。)

注意事項ノート その1
私はFBLib Firebird LibraryコンポーネントをFreePascalのtiOPF.lpkパッケージのデフォルトの永続化レイヤとしてインストールしました。 それを唯一、FreePascal/Lazarusで利用しているにすぎません。もし、FBLibをすでにインストールしているならば、tiOPFパッケージからそれを削除しなくてはなりません。

永続化レイヤーは次のようにコンパイラ指令によって制御されます。 Compiler Options -> Other -> Custom Options. 例えば、 LINK_FBL指令がFBLib コンポーネントに関係します。 すべての利用できるオプションは、tiOPFManager.pasユニットの最後の部分を見てください。

注意事項ノート その2
統合ヘルプを動作させるには、Lazarusがhtmlヘルプファイルを見つけられるようにします。詳しい情報は、\Source\Compilers\FPC にあるtiOPFHelpIntegration.txtを読んでください。

使い方

Lazarusで、あなたの作成しているプロジェクトを開いて、必要とするパッケージにtiOPFを加えます。(Project -> Project Inspector -> Add). それから、tiObjectを利用するユニットのuses節に加えてください。 これで、TtiObjectかTtiObjectListから派生したオブジェクトを作る準備ができました。

いろんなお手本となるプロジェクトは、Demosディレクトリにあります。