Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Eure Datei Header (https://www.delphipraxis.net/70170-eure-datei-header.html)

bigg 30. Mai 2006 00:02

Re: Eure Datei Header
 
Mir fällt grade auf, dass ich die Rangfolgen etwas anpassen könnte. :gruebel:

Delphi-Quellcode:
{
  #######################################################################
  #                                                                     #
  #     ____                __                                 __       #
  #    /\  _`\             /\ \                               /\ \      #
  #    \ \ \/\_\    ___    \_\ \      __   _____      __      \_\ \     #
  #     \ \ \/_/_  / __`\  /'_` \   /'__`\/\ '__`\  /'__`\    /'_` \    #
  #      \ \ \L\ \/\ \L\ \/\ \L\ \ /\  __/\ \ \L\ \/\ \L\.\_ /\ \L\ \   #
  #       \ \____/\ \____/\ \___,_\\ \____\\ \ ,__/\ \__/.\_\\ \___,_\  #
  #        \/___/  \/___/  \/__,_ / \/____/ \ \ \/  \/__/\/_/ \/__,_ /  #
  #                                          \ \_\                      #
  #                                           \/_/                      #
  #                                                                     #
  #######################################################################
  #                                                                     #
  #    Letze Änderung: 15.05.2006                                       #
  #    Version: 1.0.0.30                                                #
  #    Autor: Stefan Hollenbach                                        #
  #    Lizenz: General Public License                                  #
  #                                                                     #
  #    This program is free software; you can redistribute it and/or   #
  #    modify it under the terms of the GNU General Public License     #
  #    as published by the Free Software Foundation; either version 2   #
  #    of the License, or (at your option) any later version.          #
  #                                                                     #
  #    This program is distributed in the hope that it will be useful, #
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of  #
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the   #
  #    GNU General Public License for more details.                    #
  #                                                                     #
  #######################################################################
}

jensw_2000 30. Mai 2006 05:38

Re: Eure Datei Header
 
Delphi-Quellcode:
unit uCommon ;

interface

uses uProjectClasses;
...
...
:mrgreen:

mquadrat 30. Mai 2006 09:04

Re: Eure Datei Header
 
Ich benutz gar keine Header. Kosten nur Zeit und bringen nichts :D Abgesehen davon entwickel ich auch nicht Open Source.

NicoDE 30. Mai 2006 09:15

Re: Eure Datei Header
 
Klassischer Header für die öffentlichen Ein-Unit-Projekte. Ab einer gewissen Größe wird die History in eine eigene Datei ausgelagert...
Delphi-Quellcode:
////////////////////////////////////////////////////////////////////////////////
//
//                            BIOS Helper for Delphi
//
//               BIOS related utilities for Win32(i386) and Linux
//
////////////////////////////////////////////////////////////////////////////////
//
//  The Original Code is:
//   BiosHelp.pas, released 2001-09-02.
//
//  The Initial Developer of the Original Code is Nico Bendlin.
//
//  Portions created by Nico Bendlin are
//   Copyright (c) 2001-2005 Nico Bendlin. All Rights Reserved.
//
//  Contributor(s):
//   Nico Bendlin <nicode@gmx.net>
//
//  The contents of this file are subject to the Mozilla Public License Version
//  1.1 (the "License"); you may not use this file except in compliance with the
//  License. You may obtain a copy of the License at [url]http://www.mozilla.org/MPL/[/url]
//
//  Software distributed under the License is distributed on an "AS IS" basis,
//  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
//  the specific language governing rights and limitations under the License.
//
//  Alternatively, the contents of this file may be used under the terms of
//  either the GNU General Public License Version 2 or later (the "GPL"), or
//  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
//  in which case the provisions of the GPL or the LGPL are applicable instead
//  of those above. If you wish to allow use of your version of this file only
//  under the terms of either the GPL or the LGPL, and not to allow others to
//  use your version of this file under the terms of the MPL, indicate your
//  decision by deleting the provisions above and replace them with the notice
//  and other provisions required by the GPL or the LGPL. If you do not delete
//  the provisions above, a recipient may use your version of this file under
//  the terms of any one of the MPL, the GPL or the LGPL.
//
////////////////////////////////////////////////////////////////////////////////
//
//  Revision:
//
//    2003-02-15  2.00 [NicoDE]
//                     - generic dump method completely rewritten
//                     - default range is now E000:0000-F000:FFFF
//    2003-03-13  2.10 [NicoDE]
//                     - introduced basic Linux support (/dev/mem)
//    2003-04-10  2.20 [NicoDE]
//                     - changes for Borland CBuilder compability
//    2005-09-26  3.00 [NicoDE]
//                     - added support for Windows XP x64 Edition
//                     - default range is now C000:0000-F000:FFFF
//                     - rdmAutomatic behavior changed for WinNT!
//
////////////////////////////////////////////////////////////////////////////////
ps: ich verwende keine Block-Kommentare, da einige Header-Templates u.a. für C und C++ verwendet werden.

himitsu 30. Mai 2006 11:50

Re: Eure Datei Header
 
Ach ja ... zu den langen Texten (Copyright / Lizenzinfo und so) ... das liegt bei meinem aktuellen "Großprojekt" in 'ner Extradatei (was ich bei weiteren "Mehrunitprojekten" wohl auch wieder so machen werde ... irgendwie war mir das Platzverschwebdubg in allen Dateien diesen langen Text aufzuführen (vorallem da ich für diesen eh noch keine endgültige Fassung hab, die mir gefällt -.-'')


Zitat:

Zitat von _frank_
wie verhält sich das eigentlich genau mit dem Copyright, reicht ein solcher Header aus um sicherzustellen, dass nichts lizenzwiedrig kopiert werden kann?
Weil eigentlich kann jemand den Code kopieren den Header anpassen und dann steht Aussage gegen Aussage, oder sehe ich das falsch?
kann man das irgendwie absichern (eine unfälschbare Signatur oder sowas)?

Gruß Frank

Nein, denn wie soll man denn etwas unfälschbares in eine reine (unverschlüsselte) Textdatei reinbekommen - schließlich kann darin ja jetzer mit 'nem einfachen Texteditor rein und was ändern.

Also solche Header reichen wohl aus, aber sicherstellen können die halt nüschts.

Wie halt schon gesagt wurde, kannst du dann zwar versuchen zu Klagen und mußt dann nur noch irgendwie nachweisen, daß er/sie von dir geklaut hat.

Ghostwalker 30. Mai 2006 15:20

Re: Eure Datei Header
 
Also bei mir sieht das derzeit so aus:


Delphi-Quellcode:
{-----------------------------------------------------------------------------
 Unit Name:   blafasel.pas
 Author:      Uwe Rupprecht
 Date:        21-Mai-2006
 Version:     0.0.1
 Purpose:     class for blafasl
 History:     -
 Description:

 class for blafasl, that tut irgendwas
-----------------------------------------------------------------------------}
Groß Copyright-Infos halt ich für unsinnig das in einen Kommentar reinzupacken,
da es das ganze einfach nur unübersichtlich macht. Wenn ich (z.B. bei einem OS-Projekt)
in eine Unit gug, dann will ich wissen für was die gut ist und nicht unter welcher Lizenz das
ganze steht. Dafür sollte eine eigene Textdatei beigefügt werden.


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:13 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz