OSDN Git Service

New command: mrc2ascii
[eos/base.git] / src / Tools / filter / mrc2ascii / inc / mrc2ascii.h
1 #ifndef MRC2ASCII_H
2 #define MRC2ASCII_H
3 #include <stdio.h>
4 #include <stdlib.h>
5
6 #define OPTION_FLAG     '-'
7 #define OPTION_FLAG_POS (0)
8 #define OPTION_POS      (1)
9
10
11
12
13 typedef struct mrc2asciiInfo {
14     long flagRedirect;
15
16     long flagIn;
17     char* In;
18     FILE* fptIn;
19     
20     long flagOut;
21     char* Out;
22     FILE* fptOut;
23     
24     long flagconfigFile;
25     char* configFile;
26     FILE* fptconfigFile;
27     
28     long flagmode;
29     long mode;
30     
31 } mrc2asciiInfo;
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 extern void argCheck(mrc2asciiInfo* info, int argc, char* avgv[]);
36 extern void khorosInit(int argc, char* avgv[]);
37 extern void init0(mrc2asciiInfo* info);
38 extern void init1(mrc2asciiInfo* info);
39 extern void usage(char* usage);
40 extern void additionalUsage(void);
41 extern void htmlBeforeUsage(char* usage);
42 extern void htmlAfterUsage(char* usage);
43 #ifdef __cplusplus
44 };
45 #endif
46 #endif /* MRC2ASCII_H */