TiOPF/ja

This is an old revision of TiOPF/ja, edited by Saeka-jp at . The current revision is 48203.

/* Installation */

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

概要

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

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

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

著者

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からSourceと Demosと Docs をチェックアウトします。

 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のリリースで反映されるとうれしいのですが。

依存関係 / システム要件

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

インストール方法

パッケージ

Inside the Source\Compilers\FPC directory there are four packages.

tiOPF
Core units (run-time only package)
tiOPFGUI
GUI related units and components (run-time only package).
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.
tiOPFHelpIntegration
Integrates the fpdoc generated help files into Lazarus's help system (design-time only package)

セットアップ

オプション

注意書 #1
I included the 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.

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.

注意書 #2
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.

Usage

In Lazarus, open your project and add tiOPF as a Required Package (Project -> Project Inspector -> Add). Include tiObject in your uses clause. You are now ready to create objects descending from TtiObject or TtiObjectList.

See the example projects in the Demos directory for additional examples.