This module contains functions that gives an interface to the CORBA any type.
Note that the any interface in orber does not contain a destroy
function because the any type is represented as an Erlang record and
therefor will be removed by the garbage collector when not in use.
The type TC used below describes an IDL type and is a tuple according
to the to the Erlang language mapping.
The type Any used below is defined as:
-record(any, {typecode, value}).
where typecode is a TC tuple and value is an Erlang term of
the type defined by the typecode field.
create() -> Result
create(Typecode, Value) -> Result
Typecode = TCValue = term()Result = AnyThe create/0 function creates an empty any record and the create/2 function creates an initialized record.
set_typecode(A, Typecode) -> Result
A = AnyTypecode = TCResult = AnyThis function sets the typecode of A and returns a new any record.
A = AnyResult = TCThis function returns the typecode of A.
A = AnyValue = term()Result = AnyThis function sets the value of A and returns a new any record.
A = AnyResult = term()This function returns the value of A.