/[MITgcm]/mitgcm.org/devel/buildweb/pkg/swish-e/src/result_output.h
ViewVC logotype

Annotation of /mitgcm.org/devel/buildweb/pkg/swish-e/src/result_output.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Fri Sep 20 19:47:29 2002 UTC (22 years, 10 months ago) by adcroft
Branch point for: Import, MAIN
File MIME type: text/plain
Initial revision

1 adcroft 1.1 /*
2     $Id: result_output.h,v 1.14 2001/05/17 19:34:18 rasc Exp $
3     **
4     ** This program and library is free software; you can redistribute it and/or
5     ** modify it under the terms of the GNU (Library) General Public License
6     ** as published by the Free Software Foundation; either version 2
7     ** of the License, or any later version.
8     **
9     ** This program is distributed in the hope that it will be useful,
10     ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11     ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     ** GNU (Library) General Public License for more details.
13     **
14     ** You should have received a copy of the GNU (Library) General Public License
15     ** along with this program; if not, write to the Free Software
16     ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17     **
18     **
19     **
20     ** 2001-01 R. Scherg (rasc) initial coding
21     **
22     */
23    
24    
25     #ifndef __HasSeenModule_ResultOutput
26     #define __HasSeenModule_ResultOutput 1
27    
28    
29     /*
30     -- module data
31     */
32    
33     struct ResultExtFmtStrList
34     { /* -x extended format by defined names */
35     char *name;
36     char *fmtstr;
37     struct ResultExtFmtStrList *next;
38     struct ResultExtFmtStrList *nodep;
39     };
40    
41    
42    
43     /*
44     -- global module data structure
45     */
46    
47     struct MOD_ResultOutput {
48     /* public: */
49     int headerOutVerbose; /* -H <n> print extended header info */
50     /* should be private, of proper method is defined */
51    
52     /* private: don't use outside this module! */
53     /* -x extended format by defined names */
54     char *extendedformat; /* -x "fmt", holds fmt or NULL */
55     char *stdResultFieldDelimiter; /* -d <c> delimiter , (def: config.h) v1.x output style */
56    
57     /* ResultExtendedFormat predefined List see: -x */
58     struct ResultExtFmtStrList *resultextfmtlist;
59     };
60    
61    
62    
63    
64     void initModule_ResultOutput (SWISH *sw);
65     void freeModule_ResultOutput (SWISH *sw);
66     int configModule_ResultOutput (SWISH *sw, StringList *sl);
67    
68    
69     void initPrintExtResult (SWISH *sw, char *fmt);
70     void printResultOutput (SWISH *sw);
71     void printSortedResults (SWISH *sw);
72    
73    
74     char *hasResultExtFmtStr (SWISH *sw, char *name);
75    
76    
77     int resultHeaderOut (SWISH *sw, int min_verbose, char *prtfmt, ...);
78     void resultPrintHeader (SWISH *sw, int min_verbose, INDEXDATAHEADER *h,
79     char *pathname, int merged);
80    
81    
82     #endif
83    

  ViewVC Help
Powered by ViewVC 1.1.22