Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

com/ohrasys/app/gdsparser/GDSParserApp.java

Go to the documentation of this file.
00001 /* Copyright (C) 2004 Thomas N. Valine
00002  * tvaline@users.sourceforge.net
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA. */
00018 
00019 package com.ohrasys.app.gdsparser;
00020 import com.ohrasys.app.*;
00021 
00028 public final class GDSParserApp
00029 extends AbstractApp {
00037   public GDSParserApp(AbstractAppController controller)
00038     throws AppException{super(controller);}
00039 
00045   public static void main(String args[]) {
00046     GDSParserModel model = new GDSParserModel();
00047     GDSParserView  view  = new GDSParserView();
00048     GDSParserApp   app   = null;
00049     try {
00050       AppOption           options[]  = AppOption.parseCLArgs(args,
00051           GDSParserUtil.getTemplates());
00052       GDSParserController controller = new GDSParserController(model, view,
00053           options);
00054       app = new GDSParserApp(controller);
00055     } catch(AppException e) {
00056       System.out.println(GDSParserUtil.getUsage());
00057       System.exit(1);
00058     }
00059     app.run();
00060   }
00061 
00067   public String toString(){return super.toString();}
00068 } // end class GDSParserApp
00069 
00070 
00071 /* This material is distributed under the GNU General Public License.
00072  * For more information please go to http://www.gnu.org/copyleft/gpl.html */

Generated on Mon May 23 13:48:55 2005 for Java GDS Parser (JGDSParser) by  doxygen 1.4.2