cell-factory.h

00001 /********************************************************************\
00002  * cell-factory.h -- register cell creation object                  *
00003  * Copyright 2001 Free Software Foundation                          *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021  *                                                                  *
00022 \********************************************************************/
00023 
00024 #ifndef CELL_FACTORY_H
00025 #define CELL_FACTORY_H
00026 
00027 #include "basiccell.h"
00028 
00029 typedef struct cell_factory CellFactory;
00030 
00031 CellFactory * gnc_cell_factory_new (void);
00032 void gnc_cell_factory_destroy (CellFactory *cf);
00033 
00034 void gnc_cell_factory_add_cell_type (CellFactory *cf,
00035                                      const char *cell_type_name,
00036                                      CellCreateFunc cell_creator);
00037 
00038 BasicCell * gnc_cell_factory_make_cell (CellFactory *cf,
00039                                         const char *cell_type_name);
00040 
00041 #endif

Generated on Sun Sep 7 05:07:00 2008 for GnuCash by  doxygen 1.5.2