81 if (fwrite (& this_proj ->
id,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
83 if (fwrite (& rid,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
84 if (fwrite (& cid,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
85 if (fwrite (& this_proj -> curves[rid][cid] -> displayed,
sizeof(gboolean), 1,
fp) != 1)
return ERROR_RW;
86 if (fwrite (& this_proj -> curves[rid][cid] -> ndata,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
87 if (fwrite (this_proj -> curves[rid][cid] -> data[0],
88 sizeof(
double), this_proj -> curves[rid][cid] -> ndata,
fp) != this_proj -> curves[rid][cid] -> ndata)
return ERROR_RW;
89 if (fwrite (this_proj -> curves[rid][cid] -> data[1],
90 sizeof(
double), this_proj -> curves[rid][cid] -> ndata,
fp) != this_proj -> curves[rid][cid] -> ndata)
return ERROR_RW;
92 if (this_proj -> curves[rid][cid] -> err != NULL) i = 1;
93 if (fwrite (& i,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
94 if (this_proj -> curves[rid][cid] -> err != NULL)
96 if (fwrite (this_proj -> curves[rid][cid] -> err,
97 sizeof(
double), this_proj -> curves[rid][cid] -> ndata,
fp) != this_proj -> curves[rid][cid] -> ndata)
return ERROR_RW;
100 if (this_proj -> curves[rid][cid] -> displayed)
102 if (fwrite (this_proj -> curves[rid][cid] -> wsize,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
103 if (fwrite (this_proj -> curves[rid][cid] -> cmin,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
104 if (fwrite (this_proj -> curves[rid][cid] -> cmax,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
106 if (fwrite (& this_proj -> curves[rid][cid] ->
show_title,
sizeof(gboolean), 1,
fp) != 1)
return ERROR_RW;
112 if (fwrite (this_proj -> curves[rid][cid] -> title_pos,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
114 if (fwrite (& this_proj -> curves[rid][cid] -> title_color,
sizeof(
ColRGBA), 1,
fp) != 1)
return ERROR_RW;
116 if (fwrite (this_proj -> curves[rid][cid] -> axmin,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
117 if (fwrite (this_proj -> curves[rid][cid] -> axmax,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
123 if (fwrite (this_proj -> curves[rid][cid] -> axis_title_x,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
124 if (fwrite (this_proj -> curves[rid][cid] -> axis_title_y,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
125 if (fwrite (this_proj -> curves[rid][cid] ->
scale,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
126 if (fwrite (this_proj -> curves[rid][cid] -> axis_defaut_title,
sizeof(gboolean), 2,
fp) != 2)
return ERROR_RW;
127 if (fwrite (this_proj -> curves[rid][cid] ->
autoscale,
sizeof(gboolean), 2,
fp) != 2)
return ERROR_RW;
128 if (fwrite (this_proj -> curves[rid][cid] ->
majt,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
129 if (fwrite (this_proj -> curves[rid][cid] -> mint,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
130 if (fwrite (this_proj -> curves[rid][cid] -> ticks_io,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
131 if (fwrite (this_proj -> curves[rid][cid] -> ticks_pos,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
132 if (fwrite (this_proj -> curves[rid][cid] -> majt_size,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
133 if (fwrite (this_proj -> curves[rid][cid] -> mint_size,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
134 if (fwrite (this_proj -> curves[rid][cid] -> labels_pos,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
135 if (fwrite (this_proj -> curves[rid][cid] -> labels_digit,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
140 if (fwrite (this_proj -> curves[rid][cid] -> labels_angle,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
141 if (fwrite (this_proj -> curves[rid][cid] -> labels_shift_x,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
142 if (fwrite (this_proj -> curves[rid][cid] -> labels_shift_y,
sizeof(
int), 2,
fp) != 2)
return ERROR_RW;
143 if (fwrite (this_proj -> curves[rid][cid] ->
show_grid,
sizeof(gboolean), 2,
fp) != 2)
return ERROR_RW;
144 if (fwrite (this_proj -> curves[rid][cid] ->
show_axis,
sizeof(gboolean), 2,
fp) != 2)
return ERROR_RW;
146 if (fwrite (& this_proj -> curves[rid][cid] ->
show_legend,
sizeof(gboolean), 1,
fp) != 1)
return ERROR_RW;
148 if (fwrite (this_proj -> curves[rid][cid] -> legend_pos,
sizeof(
double), 2,
fp) != 2)
return ERROR_RW;
149 if (fwrite (& this_proj -> curves[rid][cid] -> legend_color,
sizeof(
ColRGBA), 1,
fp) != 1)
return ERROR_RW;
150 if (fwrite (& this_proj -> curves[rid][cid] -> show_legend_box,
sizeof(gboolean), 1,
fp) != 1)
return ERROR_RW;
151 if (fwrite (& this_proj -> curves[rid][cid] -> legend_box_dash,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
152 if (fwrite (& this_proj -> curves[rid][cid] -> legend_box_thickness,
sizeof(
double), 1,
fp) != 1)
return ERROR_RW;
153 if (fwrite (& this_proj -> curves[rid][cid] -> legend_box_color,
sizeof(
ColRGBA), 1,
fp) != 1)
return ERROR_RW;
155 if (fwrite (& this_proj -> curves[rid][cid] ->
show_frame,
sizeof(gboolean), 1,
fp) != 1)
return ERROR_RW;
156 if (fwrite (& this_proj -> curves[rid][cid] -> frame_type,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
157 if (fwrite (& this_proj -> curves[rid][cid] -> frame_dash,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
158 if (fwrite (& this_proj -> curves[rid][cid] -> frame_thickness,
sizeof(
double), 1,
fp) != 1)
return ERROR_RW;
159 if (fwrite (& this_proj -> curves[rid][cid] -> frame_color,
sizeof(
ColRGBA), 1,
fp) != 1)
return ERROR_RW;
160 if (fwrite (this_proj -> curves[rid][cid] -> frame_pos,
sizeof(this_proj -> curves[rid][cid] -> frame_pos), 1,
fp) != 1)
return ERROR_RW;
162 if (fwrite (& this_proj -> curves[rid][cid] -> backcolor,
sizeof(
ColRGBA), 1,
fp) != 1)
return ERROR_RW;
164 if (fwrite (& this_proj -> curves[rid][cid] -> draw_id,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
165 if (fwrite (& this_proj -> curves[rid][cid] -> bshift,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
166 if (fwrite (& this_proj -> curves[rid][cid] -> extrac -> extras,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
167 if (this_proj -> curves[rid][cid] -> extrac -> extras > 0)
169 CurveExtra * ctmp = this_proj -> curves[rid][cid] -> extrac -> first;
170 for (i=0; i<this_proj -> curves[rid][cid] -> extrac -> extras; i++)
172 if (fwrite (& ctmp ->
id.
a,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
173 if (fwrite (& ctmp ->
id.
b,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
174 if (fwrite (& ctmp ->
id.
c,
sizeof(
int), 1,
fp) != 1)
return ERROR_RW;
176 if (ctmp -> next != NULL) ctmp = ctmp -> next;