Emacs helper functions for writting BRAT class etc.

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed May 23 2001 - 05:50:36 EDT

  • Next message: Christian Holm Christensen: "BRAT update (1.16.0)"

    Hi all BRATs, 
    
    I've made avaliable two Emacs Lisp files with some functions that may
    help you write BRAT class (in particular Modules) as well as
    TestMainModule.  You can get the files from 
    
      http://pii3.brahms.bnl.gov/~brahmlib/brat/elisp/
    
    (also link from http://pii3.brahms.bnl.gov/~brahmlib => "BRAT ELisp
    helpers"). 
    
    On the same page, it's also explained how to install these files, and
    the functions are ofcourse documented there too.  
    
    The files are also avliable via CVS from 
    
      /afs/rhic/brahms/BRAHMS_CVS/brahms_app/cholm_app/elisp 
    
    For your quick reference, and hopefully awake your appetite, I include
    the documentation below: 
    
    * root-include-header 
           Will insert 
    
                 #ifndef ROOT_<class>
                 #include "<class>.h"
                 #endif
               
    
           at point. You'll be prompted for <class> 
    
    * brat-include-header 
           Will insert 
    
                 #ifndef BRAT_<class>
                 #include "<class>.h"
                 #endif
               
    
           at point. You'll be prompted for <class> 
    
    * brat-header-skel 
           Will insert into current buffer a skeleton suitable for the
           declaration of a BRAT class. The class name is the buffer name
           sans extension. You'll be prompted with 
    
                 Is this a Module (yes/no): 
    
           answering "yes" here will insert declarations appropiate for a
           BRAT Module.  
    
    * brat-source-skel 
           Like above, only a skeleton suitiable of the implmentation of a
           BRAT class is insert into current buffer.  
    
    * brat-config-skel 
           Inserts into current buffer the skeleton of a configuration
           script suitable for submission to TestMainModule. Fill in the
           modules here the X is, and start your analysis right away with  
    
                 TestMainModule <config script>
               
    
    * brat-insert-module 
           Insert a module instantation appropiate for a configuration
           script. That is, like  
    
                  <class>* <id> = new 
                    <class>(<name>, <title>);
                  mainModule->AddModule(<id>);
               
    
           where you'll be prompted for <class>, <name>, and <title>. <id>
           is based on the class name.  
    
    I hope you'll find these useful (I know I did). 
    
    Yours, 
    
    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 : Wed May 23 2001 - 05:51:46 EDT