From owner-freebsd-isdn Thu Dec 31 06:18:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA03940 for freebsd-isdn-outgoing; Thu, 31 Dec 1998 06:18:00 -0800 (PST) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from harvey.aball.de (harvey.aball.de [194.77.82.26]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA03934 for ; Thu, 31 Dec 1998 06:17:55 -0800 (PST) (envelope-from alice.turbocat.de!dave@harvey.aball.de) Received: by harvey.aball.de (Smail3.1.28.1 #11) id m0zviuh-000J0GC; Thu, 31 Dec 98 15:17 MET Received: from cat.turbocat.de (cat.turbocat.de [194.77.82.49]) by alice.turbocat.de (8.8.8/8.7.3) with ESMTP id OAA03695; Thu, 31 Dec 1998 14:38:54 +0100 (CET) Received: (from dave@localhost) by cat.turbocat.de (8.8.5/8.7.3) id OAA00278; Thu, 31 Dec 1998 14:38:53 +0100 (MET) Message-Id: <199812311338.OAA00278@cat.turbocat.de> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.2mach v148) Received: by NeXT.Mailer (1.148) From: David Wetzel Date: Thu, 31 Dec 98 14:38:51 +0100 To: "Barry Scott" Subject: Re: Rates calculations and the U.K. cc: References: <000001be34bc$6aecea80$060110ac@barrynt.private> Organisation: Turbocat's Development http://www.turbocat.de Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > From: "Barry Scott" > The rates mechanism does not work for the U.K. with its tenth second > billing. > As an OO designer I'd naturally solve the rates problem with objects. Is > there > any reason why isdnd is not a C++ program using OO design? Maybe some people do not like C--. But this is not the place for language discusssions. I would not blow up isdnd with rates calculation. I would make something similar to OpenStep's bundles (in other worlds: plugins) for each country. The simplest way of (emulating) this is a simple system() call. In your preference file you would specify that "UK.isdnbilling" will be executed on each call. The program UK.isdnbilling will get the numbers and times as arguments and does the rest. In Germany, we would have a "FRG.isdnbilling" that in turn calls the right call-by-call provider-isdnbilling program. If you like, you can make all ".isdnbilling-Bundles" directories. FRG.isdnbilling would look like this: FRG.isdnbilling/ FRG.isdnbilling/FRG.isdnbilling* FRG.isdnbilling/Resources/ FRG.isdnbilling/Resources/Mobilcom.isdnbilling/ FRG.isdnbilling/Resources/Mobilcom.isdnbilling* FRG.isdnbilling/Resources/Mobilcom.isdnbilling/Resources/ FRG.isdnbilling/Resources/Mobilcom.isdnbilling/Resources/config.plist FRG.isdnbilling/Resources/Acor.isdnbilling/ FRG.isdnbilling/Resources/Acor.isdnbilling* FRG.isdnbilling/Resources/Acor.isdnbilling/Resources/ FRG.isdnbilling/Resources/Acor.isdnbilling/Resources/config.plist See http://developer.apple.com/techpubs/macosxserver/System/Library/Frameworks/Foundation.framework/Versions/C/Resources/English.lproj/Documentation/Reference/ObjC_classic/frameset.html for more on real bundles. Or for PDF: http://developer.apple.com/techpubs/macosxserver/System/Library/Frameworks/Foundation.framework/Versions/C/Resources/English.lproj/Documentation/Reference/ObjC_classic/FoundationReference.pdf And remember: Nearly 95% of this is already in GnuStep and works on any Unix box :-) --- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 NeXTmail dave@turbocat.de (______) http://www.turbocat.de/ DEVELOPMENT * CONSULTING * ADMINISTRATION WATCH OUT FOR TURBOFAX for OPENSTEP! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message