From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/orber/doc/src/any.xml | 116 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 lib/orber/doc/src/any.xml (limited to 'lib/orber/doc/src/any.xml') 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 @@ + + + + +
+ + 1998 + 2007 + 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. + + The Initial Developer of the Original Code is Ericsson AB. + + + any + + + + 1998-04-20 + A +
+ any + the corba any type + +

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 + Create an any record + + Typecode = TC + Value = term() + Result = Any + + +

The create/0 function creates an empty any record and the create/2 + function creates an initialized record.

+
+
+ + set_typecode(A, Typecode) -> Result + Set the typecode field + + A = Any + Typecode = TC + Result = Any + + +

This function sets the typecode of A and returns a + new any record.

+
+
+ + get_typecode(A) -> Result + Fetch the typecode + + A = Any + Result = TC + + +

This function returns the typecode of A.

+
+
+ + set_value(A, Value) -> Result + Set the value field + + A = Any + Value = term() + Result = Any + + +

This function sets the value of A and returns a + new any record.

+
+
+ + get_value(A) -> Result + Fetch the value + + A = Any + Result = term() + + +

This function returns the value of A. +

+
+
+
+ +
+ -- cgit v1.2.3