00001 /*************************************************************************** 00002 * @file gnn_filewriter.h 00003 * @brief gnn_filewriter Header File. 00004 * 00005 * @date : 28-09-03 18:10 00006 * @author : Pedro Ortega C. <peortega@dcc.uchile.cl> 00007 * Copyright 2003 Pedro Ortega C. 00008 ****************************************************************************/ 00009 /* 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _GNN_FILEWRITER_H_ 00026 #define _GNN_FILEWRITER_H_ 00027 00028 00029 00030 /******************************************/ 00031 /* Include Files */ 00032 /******************************************/ 00033 00034 #include "gnn_output.h" 00035 00036 00037 00038 /******************************************/ 00039 /* Public Interface */ 00040 /******************************************/ 00041 00042 gnn_output * 00043 gnn_filewriter_new (FILE *fp); 00044 00045 gnn_output * 00046 gnn_filewriter_with_file_new (const char *filename); 00047 00048 int 00049 gnn_filewriter_set_format (gnn_output *set, const char *fmt); 00050 00051 const char * 00052 gnn_filewriter_get_format (gnn_output *set); 00053 00054 int 00055 gnn_filewriter_set_prefix (gnn_output *set, const char *prefix); 00056 00057 const char * 00058 gnn_filewriter_get_prefix (gnn_output *set); 00059 00060 int 00061 gnn_filewriter_set_postfix (gnn_output *set, const char *postfix); 00062 00063 const char * 00064 gnn_filewriter_get_postfix (gnn_output *set); 00065 00066 int 00067 gnn_filewriter_owns_file (gnn_output *set); 00068 00069 00070 00071 #endif /* _GNN_FILEWRITER_H_ */ 00072 00073 00074
1.2.18