aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__registry__serv__impl__global_8h_source.html
blob: 4f0ff0044e86e9afe708dd6738b0062486fb7b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: oscl_registry_serv_impl_global.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>oscl_registry_serv_impl_global.h</h1><a href="oscl__registry__serv__impl__global_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">//               Oscl Registry Serv Impl</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00007"></a>00007 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__proc_8h.html" title="This file contains configuration information for the linux platform.">osclconfig_proc.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="oscl__base_8h.html" title="The file oscl_base.h is the public header that should be included to pick up the...">oscl_base.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#if (OSCL_HAS_SINGLETON_SUPPORT)</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="oscl__registry__serv__impl_8h.html" title="Server-side implementation of OsclRegistry interfaces.">oscl_registry_serv_impl.h</a>&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &quot;<a class="code" href="oscl__registry__types_8h.html" title="Common types used in Oscl registry interfaces.">oscl_registry_types.h</a>&quot;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="oscl__vector_8h.html" title="The file oscl_vector.h defines the template class Oscl_Vector which has a very similar...">oscl_vector.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="oscl__mem_8h.html" title="This file contains basic memory definitions for common use across platforms.">oscl_mem.h</a>&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">//global-variable-based implementation.</span>
<a name="l00032"></a>00032 <span class="comment">//this handles both the registration client and the access client</span>
<a name="l00033"></a>00033 <span class="comment">//interfaces.</span>
<a name="l00034"></a>00034 <span class="keyword">class </span>OsclRegistryServImpl
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036     <span class="keyword">protected</span>:
<a name="l00037"></a>00037         OsclRegistryServImpl();
<a name="l00038"></a>00038         <span class="keyword">virtual</span> ~OsclRegistryServImpl();
<a name="l00039"></a>00039 
<a name="l00040"></a>00040         int32 Connect();
<a name="l00041"></a>00041         <span class="keywordtype">void</span> Close();
<a name="l00042"></a>00042 
<a name="l00043"></a>00043         <span class="comment">//for registration client</span>
<a name="l00044"></a>00044         int32 Register(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponentID, <a class="code" href="group__osclutil.html#ga3f2d0bffbe6a0339696380af91de131c">OsclComponentFactory</a> aFactory);
<a name="l00045"></a>00045         int32 UnRegister(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponentID);
<a name="l00046"></a>00046 
<a name="l00047"></a>00047         <span class="comment">//for access client.</span>
<a name="l00048"></a>00048         <a class="code" href="group__osclutil.html#ga3f2d0bffbe6a0339696380af91de131c">OsclComponentFactory</a> GetFactory(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponent);
<a name="l00049"></a>00049         <span class="keywordtype">void</span> GetFactories(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aRegistry, <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;OsclRegistryAccessElement, OsclMemAllocator&gt;</a>&amp; aVec);
<a name="l00050"></a>00050 
<a name="l00051"></a>00051         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryClient.html">OsclRegistryClient</a>;
<a name="l00052"></a>00052         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryAccessClient.html">OsclRegistryAccessClient</a>;
<a name="l00053"></a>00053     <span class="keyword">private</span>:
<a name="l00054"></a>00054         <span class="keywordtype">bool</span> IsOpen()<span class="keyword"> const</span>
<a name="l00055"></a>00055 <span class="keyword">        </span>{
<a name="l00056"></a>00056             <span class="keywordflow">return</span> iIsOpen;
<a name="l00057"></a>00057         }
<a name="l00058"></a>00058         <span class="keywordtype">bool</span> iIsOpen;
<a name="l00059"></a>00059         <span class="comment">//server data.</span>
<a name="l00060"></a>00060         <a class="code" href="classOsclComponentRegistry.html">OsclComponentRegistry</a>* GetOsclComponentRegistry();
<a name="l00061"></a>00061         <span class="comment">//session data.</span>
<a name="l00062"></a>00062         <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;uint32, OsclMemAllocator&gt;</a> iIdVec;
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 };
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#endif //oscl config</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00068"></a>00068 <span class="preprocessor">#endif //OSCL_REGISTRY_IMPL_GLOBAL_H_INCLUDED</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.005.1.1 </small>
</small></address>
</body>
</html>