2 * Copyright (c) 1995, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.4 1995-09-27 15:02:43 quinn
8 * Modified function heads & prototypes.
10 * Revision 1.3 1995/06/02 09:49:15 quinn
11 * Adding access control
13 * Revision 1.2 1995/06/01 14:34:53 quinn
16 * Revision 1.1 1995/06/01 11:22:17 quinn
24 /* -------------------- Resource 1 ------------------------- */
26 int z_Estimate1(ODR o, Z_Estimate1 **p, int opt)
28 if (!odr_sequence_begin(o, p, sizeof(**p)))
29 return opt && odr_ok(o);
31 odr_implicit(o, odr_integer, &(*p)->type, ODR_CONTEXT, 1, 0) &&
32 odr_implicit(o, odr_integer, &(*p)->value, ODR_CONTEXT, 2, 0) &&
33 odr_implicit(o, odr_integer, &(*p)->currencyCode, ODR_CONTEXT, 3, 1) &&
37 int MDF z_ResourceReport1(ODR o, Z_ResourceReport1 **p, int opt)
39 if (!odr_sequence_begin(o, p, sizeof(**p)))
40 return opt && odr_ok(o);
42 odr_implicit_settag(o, ODR_CONTEXT, 1) &&
43 odr_sequence_of(o, z_Estimate1, &(*p)->estimates,
44 &(*p)->num_estimates) &&
45 odr_implicit(o, odr_visiblestring, &(*p)->message, ODR_CONTEXT, 2, 0) &&
49 /* -------------------- Resource 2 ------------------------- */
51 int z_StringOrNumeric(ODR, Z_StringOrNumeric **, int);
52 int z_IntUnit(ODR, Z_IntUnit **, int);
54 int z_Estimate2(ODR o, Z_Estimate2 **p, int opt)
56 if (!odr_sequence_begin(o, p, sizeof(**p)))
57 return opt && odr_ok(o);
59 odr_explicit(o, z_StringOrNumeric, &(*p)->type, ODR_CONTEXT, 1, 0) &&
60 odr_implicit(o, z_IntUnit, &(*p)->value, ODR_CONTEXT, 2, 0) &&
64 int MDF z_ResourceReport2(ODR o, Z_ResourceReport2 **p, int opt)
66 if (!odr_sequence_begin(o, p, sizeof(**p)))
67 return opt && odr_ok(o);
69 odr_implicit_settag(o, ODR_CONTEXT, 1) &&
70 (odr_sequence_of(o, z_Estimate2, &(*p)->estimates,
71 &(*p)->num_estimates) || odr_ok(o)) &&
72 odr_implicit(o, odr_visiblestring, &(*p)->message, ODR_CONTEXT, 2, 1) &&