TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
key.palette.h
Go to the documentation of this file.
1 
2 /* KeyPalette MANAGES THE I/O FILES OF A MODEL
3 KeyPalette Version 0.9375 KMackenzie
4 
5 file key.palette.h
6 
7 Copyright, 2009 Emanuele Cordano and Riccardo Rigon
8 
9 This file is part of KeyPalette.
10  KeyPalette is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  KeyPalette is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23 
24 
28 #define EMPTY_VALUE -99
29 
30 //#define NOFILE_NAME "MISSING FILE"
31 
32 #define NOMODEL_NAME "OFF"
33 
34 
35 
36 typedef struct {
39 } KEYWORDS;
40 
41 typedef struct {
42  short isdynamic;
43 
44  const char * name;
45  long nh,nl;
47 
49 
50 KEYWORDS *read_keywords (FILE *init, short print);
51 
52 void free_keywords(KEYWORDS *keywords);
53 
54 STRINGBIN *read_names(FILE *fd, STRINGBIN *keywords, char *empty_name, short print);
55 
56 
57 
58 void write_keywords(KEYWORDS *keywords);
59 
61 
62 KEYWORDS_LIST *read_keywords_list (char *filename, short print);
63 
64 KEYWORDS_LIST *reorder_keywords_list(KEYWORDS_LIST *written_palette, STRINGBIN *keywords_model, long jread, char *empty_name);
65 
66 void free_keywords_list(KEYWORDS_LIST* keywords_list);
67 
68 
69 KEYWORDS_LIST *read_and_reorder_keywords_list(char *filename, STRINGBIN *keywords_model, long jread, char *empty_name,short print);
70 
71 STRINGBIN *join_path_to_stringbin(char *path, STRINGBIN *stringvector,char *no_joinstring);