tiOPF/ja

From Free Pascal wiki
Jump to navigationJump to search

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でテストされています.) 問題点: なし

インストール方法

パッケージ

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)

セットアップ

  • Unzip the zip file or check out the source from SubVersion to a location of your choice.
  • Open Lazarus
  • Open the package tiOPF.lpk with Component/Open package file (.lpk) located in the Source\Compilers\FPC directory.
  • Click on Compile
  • Open the tiOPFGUI.lpk package and click Compile

オプション

  • Open the tiOPFGUIDsgn.lpk package and click Compile and then Install (Lazarus should rebuild and restart).
  • Open the tiOPFHelpIntegration.lpk package and click Compile and the Install (Lazarus should rebuild and restart).

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