00001 // $Id: s_filhe.h 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef S_FILHE 00015 #define S_FILHE 00016 00017 #include "typedefs.h" 00018 00019 struct cv_string 00020 { 00021 INTS2 string_l; 00022 CHARS string[78]; 00023 } ; 00024 00025 00026 #if MBS_ENDIAN == 1 00027 00028 typedef struct { 00029 INTS4 filhe_dlen; /* length of data in words */ 00030 INTS2 filhe_subtype; /* = 1 */ 00031 INTS2 filhe_type; /* = 2000 */ 00032 INTS2 filhe_frag; 00033 INTS2 filhe_used; 00034 INTS4 filhe_buf; 00035 INTS4 filhe_evt; 00036 INTS4 filhe_current_i; 00037 INTS4 filhe_stime[2]; 00038 INTS4 filhe_free[4]; /* free[0] = 1 -> swap */ 00039 INTS2 filhe_label_l; /* length of tape label string */ 00040 CHARS filhe_label[30]; /* tape label */ 00041 INTS2 filhe_file_l; /* length of file name */ 00042 CHARS filhe_file[86]; /* file name */ 00043 INTS2 filhe_user_l; /* length of user name */ 00044 CHARS filhe_user[30]; /* user name */ 00045 CHARS filhe_time[24]; /* date and time string */ 00046 INTS2 filhe_run_l; /* length of run id */ 00047 CHARS filhe_run[66]; /* run id */ 00048 INTS2 filhe_exp_l; /* length of explanation */ 00049 CHARS filhe_exp[66]; /* explanation */ 00050 INTS4 filhe_lines; /* # of comment lines */ 00051 struct cv_string s_strings[30]; /* max 30 comment lines */ 00052 } s_filhe; 00053 00054 #else 00055 00056 typedef struct { 00057 INTS4 filhe_dlen; /* length of data in words */ 00058 INTS2 filhe_type; /* = 2000 */ 00059 INTS2 filhe_subtype; /* = 1 */ 00060 INTS2 filhe_used; 00061 INTS2 filhe_frag; 00062 INTS4 filhe_buf; 00063 INTS4 filhe_evt; 00064 INTS4 filhe_current_i; 00065 INTS4 filhe_stime[2]; 00066 INTS4 filhe_free[4]; /* free[0] = 1 -> swap */ 00067 INTS2 filhe_label_l; /* length of tape label string */ 00068 CHARS filhe_label[30]; /* tape label */ 00069 INTS2 filhe_file_l; /* length of file name */ 00070 CHARS filhe_file[86]; /* file name */ 00071 INTS2 filhe_user_l; /* length of user name */ 00072 CHARS filhe_user[30]; /* user name */ 00073 CHARS filhe_time[24]; /* date and time string */ 00074 INTS2 filhe_run_l; /* length of run id */ 00075 CHARS filhe_run[66]; /* run id */ 00076 INTS2 filhe_exp_l; /* length of explanation */ 00077 CHARS filhe_exp[66]; /* explanation */ 00078 INTS4 filhe_lines; /* # of comment lines */ 00079 struct cv_string s_strings[30]; /* max 30 comment lines */ 00080 } s_filhe; 00081 00082 #endif 00083 00084 #endif