<html> <head> <title>class Registry</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"> <a href="../index.html">Overview</a> </td> <td class="navimain"> <a href="index.html">Namespace</a> </td> <td class="navimainself"> Class </td> <td class="navimain"> <a href="../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <font size="-2">STATIC DATA</font></td> </tr> <tr> <td width="20%"><font size="-2">PROTECTED MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <font size="-2">TYPEDEFS</font> | <font size="-2">METHODS</font> | <font size="-2">STATIC METHODS</font> | <a href="#prot_vars"><font size="-2"><b>DATA</b></font></a> | <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> <div class="title"><h2>class Registry</h2> </div><hr> <dl> <dt>Base Classes</dt> <dd>None.</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>Summary</dt> <dd>The Registry provides the functionality to read and write information in a registry file. </dd> <dt>Description</dt> <dd>The class is implemented inline and use a C-Api. </dd> </dl> <dl> <dt>File</dt> <dd>registry.hxx</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="Registry/o.html#Registry-2173">Registry</a>( );</td> <td width="50%"> Default constructor. </td> </tr> <tr> <td> <br> <a href="Registry/o.html#Registry-2174">Registry</a>( const Registry & toCopy );</td> <td width="50%"> Copy constructcor</td> </tr> <tr> <td> <br> <a href="Registry/o.html#~Registry-2175">~Registry</a>( );</td> <td width="50%"> Destructor. The Destructor close the registry if it is open.</td> </tr> <tr> <td>Registry & <br> <a href="Registry/o.html#operator=-2176">operator=</a>( const Registry & toAssign );</td> <td width="50%"> Assign operator</td> </tr> <tr> <td>sal_Bool <br> <a href="Registry/o.html#isValid-2177">isValid</a>( ) const;</td> <td width="50%"> checks if the registry points to a valid registry data file.</td> </tr> <tr> <td>sal_Bool <br> <a href="Registry/o.html#isReadOnly-2178">isReadOnly</a>( ) const;</td> <td width="50%"> returns the access mode of the registry. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#openRootKey-2179">openRootKey</a>( RegistryKey & rRootKey );</td> <td width="50%"> opens the root key of the registry. </td> </tr> <tr> <td>::rtl::OUString <br> <a href="Registry/o.html#getName-2180">getName</a>( );</td> <td width="50%"> returns the name of the current registry data file.</td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#create-2181">create</a>( const ::rtl::OUString & registryName );</td> <td width="50%"> creates a new registry with the specified name and creates a root key. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#open-2182">open</a>( const ::rtl::OUString & registryName, RegAccessMode accessMode );</td> <td width="50%"> opens a registry with the specified name. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#close-2183">close</a>( );</td> <td width="50%"> closes explicitly the current registry data file.</td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#destroy-2184">destroy</a>( const ::rtl::OUString & registryName );</td> <td width="50%"> destroys a registry. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#loadKey-2185">loadKey</a>( RegistryKey & rKey, const ::rtl::OUString & keyName, const ::rtl::OUString & regFileName );</td> <td width="50%"> loads registry information from a specified file and save it under the specified keyName. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#saveKey-2186">saveKey</a>( RegistryKey & rKey, const ::rtl::OUString & keyName, const ::rtl::OUString & regFileName );</td> <td width="50%"> saves the registry information of the specified key and all subkeys and save it in the specified file. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#mergeKey-2187">mergeKey</a>( RegistryKey & rKey, const ::rtl::OUString & keyName, const ::rtl::OUString & regFileName, sal_Bool bWarnings = sal_False, sal_Bool bReport = sal_False );</td> <td width="50%"> merges the registry information of the specified key with the registry information of the specified file. </td> </tr> <tr> <td>RegError <br> <a href="Registry/o.html#dumpRegistry-2188">dumpRegistry</a>( RegistryKey & rKey );</td> <td width="50%"> This function reports the complete registry information of a key and all of its subkeys. </td> </tr> <tr> <td>const Registry_Api * <br> <a href="Registry/o.html#getApi-2189">getApi</a>( );</td> <td width="50%"> returns the used registry Api.</td> </tr> </table> <hr> </dd> </dl> <dl> <dt class="subtitle"><a name="prot_"><h3>Protected Members</h3> </a></dt> <dd><a name="prot_vars"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%"> <tr class="subtitle"> <td colspan="2"><h4>Data</h4> </td> </tr> <tr bgcolor="white"> <td>const <a href="c-Registry_Api.html">Registry_Api</a> * <a href="Registry/d.html#m_pApi"><strong>m_pApi;</strong></a></td> <td>stores the used and initialized registry Api.</td> </tr> <tr bgcolor="white"> <td><a href="t-RegHandle.html">RegHandle</a> <a href="Registry/d.html#m_hImpl"><strong>m_hImpl;</strong></a></td> <td>stores the handle of the underlying registry file on which most of the functions work.</td> </tr> </table> <hr> </dd> </dl> <a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-cppref" --> </body> </html>