1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
30
<date>1998-04-20</date>
34
<modulesummary>the corba any type</modulesummary>
36
<p>This module contains functions that gives an interface to the CORBA any type.</p>
37
<p>Note that the <c>any</c> interface in orber does not contain a destroy
38
function because the any type is represented as an Erlang record and
39
therefor will be removed by the garbage collector when not in use.</p>
40
<p>The type <c>TC</c> used below describes an IDL type and is a tuple according
41
to the to the Erlang language mapping.</p>
42
<p>The type <c>Any</c> used below is defined as:</p>
44
-record(any, {typecode, value}).
46
<p>where <c>typecode</c> is a TC tuple and <c>value</c> is an Erlang term of
47
the type defined by the typecode field.</p>
51
<name>create() -> Result</name>
52
<name>create(Typecode, Value) -> Result</name>
53
<fsummary>Create an any record</fsummary>
60
<p>The create/0 function creates an empty any record and the create/2
61
function creates an initialized record.</p>
65
<name>set_typecode(A, Typecode) -> Result</name>
66
<fsummary>Set the typecode field</fsummary>
73
<p>This function sets the typecode of <em>A</em> and returns a
78
<name>get_typecode(A) -> Result</name>
79
<fsummary>Fetch the typecode</fsummary>
85
<p>This function returns the typecode of <em>A</em>.</p>
89
<name>set_value(A, Value) -> Result</name>
90
<fsummary>Set the value field</fsummary>
97
<p>This function sets the value of <em>A</em> and returns a
102
<name>get_value(A) -> Result</name>
103
<fsummary>Fetch the value</fsummary>
106
<v>Result = term()</v>
109
<p>This function returns the value of <em>A</em>.