Hi Software gays and gails, I guess you've all seen the message on `brahms-l', and this will not recap that info. Let me briefly outline the changes I made to BRAT: * Added Exception classes: I've added the classes BrExcpetion, BrWarning, BrError, and BrFatal, to provide slick - IMHO - excpetion handling in BRAT. I've used these classes extensivly in the Database classes. These classes are part of the `libBrat_Base.so' (something else under Windoze I guess). There is one header file: `BrExcpetion.h' Take a look at the code for the Database classes or in the `TestDB*.cxx' in the BRAT test sub dir. * Added Database classes: There are _alot_ of classes for this. They are part of the `libBrat_Db.so' library. They may be buggy, and a number of methods can defently be imporved/added. Take a look at the files `TestDB*.cxx' in the BRAT test sub dir for some examples. VERY VERY IMPORTANT: ==================== To use the Database classes, you need to have the MySQL client library installed, and a least access to a machine running a MySQL server. Also, You need the ROOT add-on MySQL library, avalibale from `ftp://root.cern.ch/root/MySQL.tar.gz'. Finally, the `mysql' database on the server need to be set up proberly, to allow you access to some databases from what ever host, using some user name (perhaps password). I've used a local server while deveoping, and haven't tried any remote very seriously - however, it does seem to work fine. The Databases currently used are `BrahmsMain' and `BrahmsCalib'. Some of the files assume that the user is me (He, you know, the evil one called cholm@hilux12.nbi.dk), hoewever, this is easliy modified. Once the Databases have been setup, and you've added the proper user to the server `mysql' database, you can start adding new `BrPerson's to the Brahms database. From that moment on, the people registered can use the BrDBManager class! As I wrote in my mail to brahms-l, I'm gonna provide a Write-up very soon, explaning the stuff in a bit more detail. Oh, and please let me know if you find strange things or bug, or the like! Cheers, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 19:12:48 EST