Difference between revisions of "tiOPF/de"

From Free Pascal wiki
Jump to navigationJump to search
 
m
Line 5: Line 5:
 
Das TechInsite Object Persistence Framework (tiOPF) ist ein Open Source framework von Delphi/Object Pascal Code, welches das Mapping eines objektorientierten Geschäftsmodells in eine relationale Datenbank vereinfacht. Das framework ist ausgereift und robust. Es wird in verschiedenen Standorten seit mehr als sieben Jahren eingesetzt. Es ist frei, Open Source und für den sofortigen Download mit dem kompletten Quellcode verfügbar.  
 
Das TechInsite Object Persistence Framework (tiOPF) ist ein Open Source framework von Delphi/Object Pascal Code, welches das Mapping eines objektorientierten Geschäftsmodells in eine relationale Datenbank vereinfacht. Das framework ist ausgereift und robust. Es wird in verschiedenen Standorten seit mehr als sieben Jahren eingesetzt. Es ist frei, Open Source und für den sofortigen Download mit dem kompletten Quellcode verfügbar.  
  
Some of the key features of the tiOPF include:
+
Einige der Schlüsselmerkmale von tiOPF beinhalten:
  
* 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.
+
* 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. Aktuell gibt es persistence layers für Interbase-IBX, Oracle-DOA, XML-MSDOM, XML-XMLLite, Paradox-BDE, MSAccess-ADO, MSSQLServer-ADO, FireBird-FBLib, FireBird-SqlDB, HTTP Proxy-Remote, CSV Dateien und TAB Dateien.
 
* Family of abstract base classes for building a complex object model
 
* Family of abstract base classes for building a complex object model
* 27 Persistent object aware components for building complex GUIs (Delphi only).
+
* 27 Persistent object aware components for building complex GUIs (nur Delphi).
 
* Model-GUI-Mediators for enabling any standard GUI component to become Object Aware.
 
* Model-GUI-Mediators for enabling any standard GUI component to become Object Aware.
* 1400+ DUnit/fpcUnit tests to guarantee stability
+
* 1400+ DUnit/fpcUnit Tests um die Stabilität zu garantieren
* 160 pages of documentation to get you started
+
* 160 Seiten Dokumentation für den Einstieg
* News groups for support
+
* News groups für den Support
 
* Automated, daily builds and unit testing
 
* Automated, daily builds and unit testing
 
* Lots of demos focusing on specific parts of the framework for easy learning.
 
* Lots of demos focusing on specific parts of the framework for easy learning.
* Cross platform. Currently tested on Windows and Linux.
+
* Cross platform. Aktuell getestet unter Windows und Linux.
  
 
== Autoren ==
 
== Autoren ==
Line 57: Line 57:
 
; tiOPF : Kernunits (nur Laufzeit Package)
 
; tiOPF : Kernunits (nur Laufzeit Package)
 
; tiOPFGUI : GUI bezogene Units und Komponenten (nur Laufzeit Package).  
 
; tiOPFGUI : GUI bezogene Units und Komponenten (nur Laufzeit 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.
+
; tiOPFGUIDsgn : Registriert/Installiert die Komponenten in die Lazarus Komponentenpalette (nur Entwicklungszeit Package). Die unter Lazarus verwendeten GUI Komponenten sind noch experimentell und unter erheblicher Entwicklung. Es wird empfohlen, regelmäßige Aktualisierungen von SubVersion zu holen, if they are going to be used.
; tiOPFHelpIntegration : Integrates the fpdoc generated help files into Lazarus's help system (design-time only package)
+
; tiOPFHelpIntegration : Integriert die von fpdoc generierten Hilfedateien in das Lazarus Hilfesystem (nur Entwicklungszeit Package)
  
 
=== Die Installation ===
 
=== Die Installation ===
 
* Unzip the zip file or check out the source from SubVersion to a location of your choice.
 
* Unzip the zip file or check out the source from SubVersion to a location of your choice.
* Open Lazarus
+
* Starten sie Lazarus
* Open the package ''tiOPF.lpk'' with Component/Open package file (.lpk) located in the Source\Compilers\FPC directory.
+
* Öffnen sie das Package ''tiOPF.lpk'' mit Komponenten -> Package-Datei (.lpk) öffnen... .
* Click on Compile
+
* Klicken sie auf Kompilieren
* Open the ''tiOPFGUI.lpk'' package and click Compile
+
* Öffnen sie das ''tiOPFGUI.lpk'' Package und klicken auf Kompilieren
  
 
Optional
 
Optional
  
* Open the ''tiOPFGUIDsgn.lpk'' package and click Compile and then Install (Lazarus should rebuild and restart).
+
* Öffnen sie das ''tiOPFGUIDsgn.lpk'' Package und klicken auf Installieren (Lazarus wird neu erstellt und startet neu).
* Open the ''tiOPFHelpIntegration.lpk'' package and click Compile and the Install (Lazarus should rebuild and restart).
+
* Öffnen sie das ''tiOPFHelpIntegration.lpk'' Package und klicken auf Installieren (Lazarus wird neu erstellt und startet neu).
  
 
<u>ANMERKUNG #1</u><br>
 
<u>ANMERKUNG #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.
 
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.
  
Persistence layers are controlled by a Compiler Directive under ''Compiler Options'' -> ''Other'' -> ''Custom Options''. eg: LINK_FBL = FBLib components.
+
Persistence layers are controlled by a Compiler Directive under ''Projekt -> Compilereinstellungen -> Andere -> Benutzerdefinierte Einstellungen''. z.B. LINK_FBL = FBLib Komponenten.
 
For more all the available options see the end of the ''tiOPFManager.pas'' unit.
 
For more all the available options see the end of the ''tiOPFManager.pas'' unit.
  
 
<u>ANMERKUNG #2</u><br>
 
<u>ANMERKUNG #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.
+
Damit die integrierte Hilfe funktioniert muß Lazarus wissen, wie es die HTML Hilfedateien finden kann. Bitte lesen sie die ''tiOPFHelpIntegration.txt'' Datei, welche sich in \Source\Compilers\FPC befindet, für weitere Anweisungen.
  
 
== Verwendung ==
 
== Verwendung ==

Revision as of 22:30, 9 November 2006

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

Über

Das TechInsite Object Persistence Framework (tiOPF) ist ein Open Source framework von Delphi/Object Pascal Code, welches das Mapping eines objektorientierten Geschäftsmodells in eine relationale Datenbank vereinfacht. Das framework ist ausgereift und robust. Es wird in verschiedenen Standorten seit mehr als sieben Jahren eingesetzt. Es ist frei, Open Source und für den sofortigen Download mit dem kompletten Quellcode verfügbar.

Einige der Schlüsselmerkmale von tiOPF beinhalten:

  • 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. Aktuell gibt es persistence layers für Interbase-IBX, Oracle-DOA, XML-MSDOM, XML-XMLLite, Paradox-BDE, MSAccess-ADO, MSSQLServer-ADO, FireBird-FBLib, FireBird-SqlDB, HTTP Proxy-Remote, CSV Dateien und TAB Dateien.
  • Family of abstract base classes for building a complex object model
  • 27 Persistent object aware components for building complex GUIs (nur Delphi).
  • Model-GUI-Mediators for enabling any standard GUI component to become Object Aware.
  • 1400+ DUnit/fpcUnit Tests um die Stabilität zu garantieren
  • 160 Seiten Dokumentation für den Einstieg
  • News groups für den Support
  • Automated, daily builds and unit testing
  • Lots of demos focusing on specific parts of the framework for easy learning.
  • Cross platform. Aktuell getestet unter Windows und Linux.

Autoren

Peter Hinrichsen - Ursprünglicher Designer.
Graeme Geldenhuys - Portiert nach Free Pascal.

Lizenz

Mozilla Public License 1.1 (bitte kontaktieren sie den Autor, wenn die MPL nicht zur Lizenz ihres Projektes paßt)

Download

Das neueste stabile Release ist auf der TechInsite Seite zu finden.
Der neueste Entwicklungscode ist auf dem SubVersion Server wie folgt zu finden

svn co https://svn.sourceforge.net/svnroot/tiopf/tiOPF2/Trunk Source

Anmerkung: Der tiOPF Code ist kürzlich zu SourceForge umgezogen. Daher ist noch keine vorgepackte Zip Datei verfügbar. Der neueste Code kann dennoch von SubVersion heruntergeladen werden.

Ein einfacher Weg, um den Code zu bekommen, ist die Verwendung eines Kommandozeilen SVN-Clients wie folgt. Die Kommandos unterhalb werden die Source, Demos und Docs Verzeichnisse der tiOPF Version 2 auschecken.

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

Versuchen sie die obige Verzeichnisstruktur beizubehalten. Sie ist viel leichter zu unterstützen und die Dokumentationserstellungsskripte werden ohne Modifikation funktionieren.

Abhängigkeiten / Systemvoraussetzungen

  • Compiler: Free Pascal 2.0.4 (FPC 2.1.1 ist riskanter, funktioniert aber auch. Es wird für die nighly builds unter Linux verwendet).
  • Komponenten für your required persistence layer, if it is not included with the compiler, z.B. FBLib für das FireBird RDMS.

Status: Stabil (getestet unter Windows und Linux.)

Probleme: Keine

Installation

Die Packages

In dem Source\Compilers\FPC Verzeichnis gibt es 4 Packages.

tiOPF
Kernunits (nur Laufzeit Package)
tiOPFGUI
GUI bezogene Units und Komponenten (nur Laufzeit Package).
tiOPFGUIDsgn
Registriert/Installiert die Komponenten in die Lazarus Komponentenpalette (nur Entwicklungszeit Package). Die unter Lazarus verwendeten GUI Komponenten sind noch experimentell und unter erheblicher Entwicklung. Es wird empfohlen, regelmäßige Aktualisierungen von SubVersion zu holen, if they are going to be used.
tiOPFHelpIntegration
Integriert die von fpdoc generierten Hilfedateien in das Lazarus Hilfesystem (nur Entwicklungszeit Package)

Die Installation

  • Unzip the zip file or check out the source from SubVersion to a location of your choice.
  • Starten sie Lazarus
  • Öffnen sie das Package tiOPF.lpk mit Komponenten -> Package-Datei (.lpk) öffnen... .
  • Klicken sie auf Kompilieren
  • Öffnen sie das tiOPFGUI.lpk Package und klicken auf Kompilieren

Optional

  • Öffnen sie das tiOPFGUIDsgn.lpk Package und klicken auf Installieren (Lazarus wird neu erstellt und startet neu).
  • Öffnen sie das tiOPFHelpIntegration.lpk Package und klicken auf Installieren (Lazarus wird neu erstellt und startet neu).

ANMERKUNG #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 Projekt -> Compilereinstellungen -> Andere -> Benutzerdefinierte Einstellungen. z.B. LINK_FBL = FBLib Komponenten. For more all the available options see the end of the tiOPFManager.pas unit.

ANMERKUNG #2
Damit die integrierte Hilfe funktioniert muß Lazarus wissen, wie es die HTML Hilfedateien finden kann. Bitte lesen sie die tiOPFHelpIntegration.txt Datei, welche sich in \Source\Compilers\FPC befindet, für weitere Anweisungen.

Verwendung

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 object decending from TtiObject or TtiObjectList.

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