1diameterc(1) User Commands diameterc(1)
2
3
4
6 diameterc - diameterc [<options>] <file>
7
9 The diameterc utility is used to compile a diameter dictionary file
10 into Erlang source. The resulting source implements the interface diam‐
11 eter required to encode and decode the dictionary's messages and AVPs.
12
13 The module diameter_make(3) provides an alternate compilation inter‐
14 face.
15
17 diameterc [<options>] <file>:
18 Compile a single dictionary file to Erlang source. Valid options
19 are as follows.
20
21 -i <dir>:
22 Prepend the specified directory to the code path. Use to point at
23 beam files compiled from inherited dictionaries, @inherits in a
24 dictionary file creating a beam dependency, not an erl/hrl depen‐
25 dency.
26
27 Multiple -i options can be specified.
28
29 -o <dir>:
30 Write generated source to the specified directory. Defaults to
31 the current working directory.
32
33 -E:
34
35
36 -H:
37 Suppress erl and hrl generation, respectively.
38
39 --name <name>:
40
41
42 --prefix <prefix>:
43 Transform the input dictionary before compilation, setting @name
44 or @prefix to the specified string.
45
46 --inherits <arg>:
47 Transform the input dictionary before compilation, appending @in‐
48 herits of the specified string.
49
50 Two forms of --inherits have special meaning:
51
52 --inherits -
53 --inherits Prev/Mod
54
55
56 The first has the effect of clearing any previous inherits, the
57 second of replacing a previous inherits of Prev to one of Mod.
58 This allows the semantics of the input dictionary to be changed
59 without modifying the file itself.
60
61 Multiple --inherits options can be specified.
62
64 Returns 0 on success, non-zero on failure.
65
67 diameter_make(3), diameter_dict(4)
68
69
70
71Ericsson AB diameter 2.2.5 diameterc(1)