diff options
author | Erlang/OTP <[email protected]> | 2009-11-20 14:54:40 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2009-11-20 14:54:40 +0000 |
commit | 84adefa331c4159d432d22840663c38f155cd4c1 (patch) | |
tree | bff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/orber/doc/src/any.xml | |
download | otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2 otp-84adefa331c4159d432d22840663c38f155cd4c1.zip |
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/orber/doc/src/any.xml')
-rw-r--r-- | lib/orber/doc/src/any.xml | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/lib/orber/doc/src/any.xml b/lib/orber/doc/src/any.xml new file mode 100644 index 0000000000..6ba1a96561 --- /dev/null +++ b/lib/orber/doc/src/any.xml @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="latin1" ?> +<!DOCTYPE erlref SYSTEM "erlref.dtd"> + +<erlref> + <header> + <copyright> + <year>1998</year> + <year>2007</year> + <holder>Ericsson AB, All Rights Reserved</holder> + </copyright> + <legalnotice> + 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. + + The Initial Developer of the Original Code is Ericsson AB. + </legalnotice> + + <title>any</title> + <prepared></prepared> + <docno></docno> + <checked></checked> + <date>1998-04-20</date> + <rev>A</rev> + </header> + <module>any</module> + <modulesummary>the corba any type</modulesummary> + <description> + <p>This module contains functions that gives an interface to the CORBA any type.</p> + <p>Note that the <c>any</c> 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.</p> + <p>The type <c>TC</c> used below describes an IDL type and is a tuple according + to the to the Erlang language mapping.</p> + <p>The type <c>Any</c> used below is defined as:</p> + <code type="none"> + -record(any, {typecode, value}). + </code> + <p>where <c>typecode</c> is a TC tuple and <c>value</c> is an Erlang term of + the type defined by the typecode field.</p> + </description> + <funcs> + <func> + <name>create() -> Result</name> + <name>create(Typecode, Value) -> Result</name> + <fsummary>Create an any record</fsummary> + <type> + <v>Typecode = TC</v> + <v>Value = term()</v> + <v>Result = Any</v> + </type> + <desc> + <p>The create/0 function creates an empty any record and the create/2 + function creates an initialized record.</p> + </desc> + </func> + <func> + <name>set_typecode(A, Typecode) -> Result</name> + <fsummary>Set the typecode field</fsummary> + <type> + <v>A = Any</v> + <v>Typecode = TC</v> + <v>Result = Any</v> + </type> + <desc> + <p>This function sets the typecode of <em>A</em> and returns a + new any record.</p> + </desc> + </func> + <func> + <name>get_typecode(A) -> Result</name> + <fsummary>Fetch the typecode</fsummary> + <type> + <v>A = Any</v> + <v>Result = TC</v> + </type> + <desc> + <p>This function returns the typecode of <em>A</em>.</p> + </desc> + </func> + <func> + <name>set_value(A, Value) -> Result</name> + <fsummary>Set the value field</fsummary> + <type> + <v>A = Any</v> + <v>Value = term()</v> + <v>Result = Any</v> + </type> + <desc> + <p>This function sets the value of <em>A</em> and returns a + new any record.</p> + </desc> + </func> + <func> + <name>get_value(A) -> Result</name> + <fsummary>Fetch the value</fsummary> + <type> + <v>A = Any</v> + <v>Result = term()</v> + </type> + <desc> + <p>This function returns the value of <em>A</em>. + </p> + </desc> + </func> + </funcs> + +</erlref> + |