hio / erlang-record_info

convert between record and proplist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

erlang-record_info
==================

see t/test.erl as a sample code.

DESCRIPTION
-----------

-include("record_info.hrl") automaticaly creates and exports record_info/1
function.

record_info:record_to_proplist/2 and proplist_to_record/3 use
this function.

 record_to_proplist(Record, Module) -> PropList.
 proplist_to_record(PropList, RecordName, Module) -> Record.

Module argument of proplist_to_record/3 is a module name which
is using record information of RecordName.


BUILD AND INSTALL
-----------------

small Makefile is contained, just type make.

 $ make

beam files are generated into _build/record_info/ebin.
install script is not supplied.
please do it by hand if you want...

.. ---------------------------------------------------------------------------
.. End Of File.
.. ---------------------------------------------------------------------------

About

convert between record and proplist


Languages

Language:Erlang 100.0%