Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 8858

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>class Any</title>
<link rel="stylesheet" type="text/css" href="../../../../../cpp.css">
</head>
<body>
<div id="adc-cppref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0">
<tr align="center" valign="top">
<td class="navimain">&nbsp;<a href="../../../../../index.html">Overview</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="index.html">Namespace</a>&nbsp;</td>
<td class="navimainself">&nbsp;Class&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../../../../index-files/index-1.html">Index</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../../../../help.html">Help</a>&nbsp;</td>
</tr>
</table>
<table class="navisub" cellpadding="0" cellspacing="3">
<tr>
<td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td>
<td>
&nbsp;<font size="-2">CLASSES</font>
|&nbsp;<font size="-2">STRUCTS</font>
|&nbsp;<font size="-2">UNIONS</font>
|&nbsp;<font size="-2">ENUMS</font>
|&nbsp;<font size="-2">TYPEDEFS</font>
|&nbsp;<a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a>
|&nbsp;<font size="-2">STATIC METHODS</font>
|&nbsp;<font size="-2">DATA</font>
|&nbsp;<font size="-2">STATIC DATA</font></td>
</tr>
<tr>
<td width="20%"><font size="-2">PRIVATE MEMBERS:</font></td>
<td>
&nbsp;<font size="-2">CLASSES</font>
|&nbsp;<font size="-2">STRUCTS</font>
|&nbsp;<font size="-2">UNIONS</font>
|&nbsp;<font size="-2">ENUMS</font>
|&nbsp;<font size="-2">TYPEDEFS</font>
|&nbsp;<a href="#priv_ops"><font size="-2"><b>METHODS</b></font></a>
|&nbsp;<font size="-2">STATIC METHODS</font>
|&nbsp;<font size="-2">DATA</font>
|&nbsp;<font size="-2">STATIC DATA</font></td>
</tr>
</table>
<hr>
<a href="../../../../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="../../../index.html" alt="namespace"><font size="+1"><b>com</b></font></a><font size="+1"> :: </font><a href="../../index.html" alt="namespace"><font size="+1"><b>sun</b></font></a><font size="+1"> :: </font><a href="../index.html" alt="namespace"><font size="+1"><b>star</b></font></a><font size="+1"> :: </font><a href="index.html" alt="namespace"><font size="+1"><b>uno</b></font></a><font size="+1"> :: </font><div class="title"><h2>class Any</h2>
</div><hr>
<dl>
<dt>Base Classes</dt>
<dd><pre style="font-family:monospace;">
<span class="btpubl"><a href="../../../../t-uno_Any.html">uno_Any</a> (public)</span>
  |  
  +--<span class="btself">Any</span>
</pre></dd>
</dl>
<dl>
<dt>Known Derived Classes</dt>
<dd>None.</dd>
</dl>
<br>
<table class="flag-table" border="1" cellspacing="0">
<tr>
<td width="25%" class="flagname">virtual</td>
<td width="25%" class="flagname">abstract</td>
<td width="25%" class="flagname">interface</td>
<td width="25%" class="flagname">template</td>
</tr>
<tr>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
</tr>
</table>
<dl>
<dt>Description</dt>
<dd>C++ class representing an IDL any.
This class is used to transport any type defined in IDL. The class inherits from the
binary C representation of uno_Any.
You can insert a value by either using the <<= operators or the template function makeAny().
No any can hold an any. You can extract values from an any by using the >>= operators which
return true if the any contains an assignable value (no data loss), e.g. the any contains a
short and you >>= it into a long variable.
</dd>
</dl>
<dl>
<dt>File</dt>
<dd>Any.h</dd>
</dl>
<hr>
<dl>
<dt class="subtitle"><a name="publ_"><h3>Public Members</h3>
</a></dt>
<dd><a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Methods</h4>
</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#Any-2608">Any</a>( ) throw( );</td>
<td width="50%"> Default constructor: Any holds no value; its type is void.
</td>
</tr>
<tr>
<td>explicit  <br>
<a href="Any/o.html#Any-2609">Any</a>( bool value );</td>
<td width="50%"> Ctor support for C++ bool.</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#Any-2610">Any</a>( const Any &amp; rAny ) throw( );</td>
<td width="50%"> Copy constructor: Sets value of the given any.

</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#Any-2611">Any</a>( const void * pData_, const Type &amp; rType ) throw( );</td>
<td width="50%"> Constructor: Sets a copy of the given data.

</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#Any-2612">Any</a>( const void * pData_, typelib_TypeDescription * pTypeDescr ) throw( );</td>
<td width="50%"> Constructor: Sets a copy of the given data.

</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#Any-2613">Any</a>( const void * pData_, typelib_TypeDescriptionReference * pType ) throw( );</td>
<td width="50%"> Constructor: Sets a copy of the given data.

</td>
</tr>
<tr>
<td> <br>
<a href="Any/o.html#~Any-2614">~Any</a>( ) throw( );</td>
<td width="50%"> Destructor: Destructs any content and frees memory.
</td>
</tr>
<tr>
<td>Any &amp; <br>
<a href="Any/o.html#operator=-2615">operator=</a>( const Any &amp; rAny ) throw( );</td>
<td width="50%"> Assignment operator: Sets the value of the given any.

</td>
</tr>
<tr>
<td>const Type &amp; <br>
<a href="Any/o.html#getValueType-2616">getValueType</a>( ) const throw( );</td>
<td width="50%"> Gets the type of the set value.

</td>
</tr>
<tr>
<td>typelib_TypeDescriptionReference * <br>
<a href="Any/o.html#getValueTypeRef-2617">getValueTypeRef</a>( ) const throw( );</td>
<td width="50%"> Gets the type of the set value.

</td>
</tr>
<tr>
<td>void <br>
<a href="Any/o.html#getValueTypeDescription-2618">getValueTypeDescription</a>( typelib_TypeDescription * * ppTypeDescr ) const throw( );</td>
<td width="50%"> Gets the type description of the set value. Provides ownership of the type description!
Call an explicit typelib_typedescription_release() to release afterwards.

</td>
</tr>
<tr>
<td>TypeClass <br>
<a href="Any/o.html#getValueTypeClass-2619">getValueTypeClass</a>( ) const throw( );</td>
<td width="50%"> Gets the type class of the set value.

</td>
</tr>
<tr>
<td>::rtl::OUString <br>
<a href="Any/o.html#getValueTypeName-2620">getValueTypeName</a>( ) const throw( );</td>
<td width="50%"> Gets the type name of the set value.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Any/o.html#hasValue-2621">hasValue</a>( ) const throw( );</td>
<td width="50%"> Tests if any contains a value.

</td>
</tr>
<tr>
<td>const void * <br>
<a href="Any/o.html#getValue-2622">getValue</a>( ) const throw( );</td>
<td width="50%"> Gets a pointer to the set value.

</td>
</tr>
<tr>
<td>void <br>
<a href="Any/o.html#setValue-2623">setValue</a>( const void * pData_, const Type &amp; rType ) throw( );</td>
<td width="50%"> Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.

</td>
</tr>
<tr>
<td>void <br>
<a href="Any/o.html#setValue-2624">setValue</a>( const void * pData_, typelib_TypeDescriptionReference * pType ) throw( );</td>
<td width="50%"> Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.

</td>
</tr>
<tr>
<td>void <br>
<a href="Any/o.html#setValue-2625">setValue</a>( const void * pData_, typelib_TypeDescription * pTypeDescr ) throw( );</td>
<td width="50%"> Sets a value. If the any already contains a value, that value will be destructed
and its memory freed.

</td>
</tr>
<tr>
<td>void <br>
<a href="Any/o.html#clear-2626">clear</a>( ) throw( );</td>
<td width="50%"> Clears this any. If the any already contains a value, that value will be destructed
and its memory freed. After this has been called, the any does not contain a value.
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Any/o.html#isExtractableTo-2627">isExtractableTo</a>( const Type &amp; rType ) const throw( );</td>
<td width="50%"> Tests whether this any is extractable to a value of given type.
Widening conversion without data loss is taken into account.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Any/o.html#operator==-2628">operator==</a>( const Any &amp; rAny ) const throw( );</td>
<td width="50%"> Equality operator: compares two anys.
The values need not be of equal type, e.g. a short integer is compared to a long integer.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Any/o.html#operator!=-2629">operator!=</a>( const Any &amp; rAny ) const throw( );</td>
<td width="50%"> Unequality operator: compares two anys.
The values need not be of equal type, e.g. a short integer is compared to a long integer.

</td>
</tr>
</table>
<hr>
</dd>
</dl>
<dl>
<dt class="subtitle"><a name="priv_"><h3>Private Members</h3>
</a></dt>
<dd><a name="priv_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Methods</h4>
</td>
</tr>
<tr>
<td>explicit  <br>
<a href="Any/o.html#Any-2630">Any</a>( sal_uInt16  );</td>
<td width="50%"> </td>
</tr>
</table>
<hr>
</dd>
</dl>
<a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p>

</div> <!-- id="adc-cppref" -->
</body>

</html>