file:name()'> dictionary file'> %also; %here; ]>
2012 Ericsson AB. All Rights Reserved. The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. diameter_make(3) Anders Svensson diameter_make.xml
diameter_make Diameter dictionary compilation.

The function &codec; is used to compile a diameter &dictionary; into Erlang source. The resulting source implements the interface diameter required to encode and decode the dictionary's messages and AVP's.

The utility &man_compile; provides an alternate compilation interface.

codec(Path::string(), [Opt]) -> ok | {error, Reason} Compile a dictionary file into Erlang source.

Compile a single dictionary file to Erlang source. Opt can have the following types.

{include, Dir::string()}

Prepend the specified directory to the code path. Use to point at beam files compiled from inherited dictionaries, &dict_inherits; in a dictionary file creating a beam dependency, not an erl/hrl dependency.

Multiple include options can be specified.

{outdir, Dir::string()}

Write generated source to the specified directory. Defaults to the current working directory.

{name|prefix, string()}

Set &dict_name; or &dict_prefix; to the specified string. Overrides any setting in the file itself.

{inherits, Mod::string()}

Append &dict_inherits; of the specified module. Specifying "-" has the effect of discarding clearing any previous inherits, both in the dictionary file and on the options list.

Multiple inherits options can be specified.

BUGS

All options are string-valued. In particular, it is not currently possible to an &dict_inherits; module as an atom() or a path as a &filename;

SEE ALSO

&man_compile;, &man_dict;