<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>MPQC: MPQC_ComponentFactory_Impl.hh 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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</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 List</span></a></li> </ul> </div> <h1>MPQC_ComponentFactory_Impl.hh</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// </span> <a name="l00002"></a>00002 <span class="comment">// File: MPQC_ComponentFactory_Impl.hh</span> <a name="l00003"></a>00003 <span class="comment">// Symbol: MPQC.ComponentFactory-v0.2</span> <a name="l00004"></a>00004 <span class="comment">// Symbol Type: class</span> <a name="l00005"></a>00005 <span class="comment">// Babel Version: 0.10.2</span> <a name="l00006"></a>00006 <span class="comment">// Description: Server-side implementation for MPQC.ComponentFactory</span> <a name="l00007"></a>00007 <span class="comment">// </span> <a name="l00008"></a>00008 <span class="comment">// WARNING: Automatically generated; only changes within splicers preserved</span> <a name="l00009"></a>00009 <span class="comment">// </span> <a name="l00010"></a>00010 <span class="comment">// babel-version = 0.10.2</span> <a name="l00011"></a>00011 <span class="comment">// </span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#ifndef included_MPQC_ComponentFactory_Impl_hh</span> <a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define included_MPQC_ComponentFactory_Impl_hh</span> <a name="l00015"></a>00015 <span class="preprocessor"></span> <a name="l00016"></a>00016 <span class="preprocessor">#ifndef included_sidl_cxx_hh</span> <a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#include "sidl_cxx.hh"</span> <a name="l00018"></a>00018 <span class="preprocessor">#endif</span> <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_MPQC_ComponentFactory_IOR_h</span> <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include "MPQC_ComponentFactory_IOR.h"</span> <a name="l00021"></a>00021 <span class="preprocessor">#endif</span> <a name="l00022"></a>00022 <span class="preprocessor"></span><span class="comment">// </span> <a name="l00023"></a>00023 <span class="comment">// Includes for all method dependencies.</span> <a name="l00024"></a>00024 <span class="comment">// </span> <a name="l00025"></a>00025 <span class="preprocessor">#ifndef included_MPQC_ComponentFactory_hh</span> <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include "MPQC_ComponentFactory.hh"</span> <a name="l00027"></a>00027 <span class="preprocessor">#endif</span> <a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_gov_cca_CCAException_hh</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#include "gov_cca_CCAException.hh"</span> <a name="l00030"></a>00030 <span class="preprocessor">#endif</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_gov_cca_Component_hh</span> <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#include "gov_cca_Component.hh"</span> <a name="l00033"></a>00033 <span class="preprocessor">#endif</span> <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_gov_cca_ComponentClassDescription_hh</span> <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#include "gov_cca_ComponentClassDescription.hh"</span> <a name="l00036"></a>00036 <span class="preprocessor">#endif</span> <a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_sidl_BaseInterface_hh</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#include "sidl_BaseInterface.hh"</span> <a name="l00039"></a>00039 <span class="preprocessor">#endif</span> <a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#ifndef included_sidl_ClassInfo_hh</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#include "sidl_ClassInfo.hh"</span> <a name="l00042"></a>00042 <span class="preprocessor">#endif</span> <a name="l00043"></a>00043 <span class="preprocessor"></span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._includes)</span> <a name="l00046"></a>00046 <span class="comment">// Put additional includes or other arbitrary code here...</span> <a name="l00047"></a>00047 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._includes)</span> <a name="l00048"></a>00048 <a name="l00049"></a>00049 <span class="keyword">namespace </span>MPQC { <a name="l00050"></a>00050 <a name="l00054"></a><a class="code" href="classMPQC_1_1ComponentFactory__impl.html">00054</a> <span class="keyword">class </span><a class="code" href="classMPQC_1_1ComponentFactory__impl.html" title="Symbol &quot;MPQC.ComponentFactory&quot; (version 0.2).">ComponentFactory_impl</a> <a name="l00055"></a>00055 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._inherits)</span> <a name="l00056"></a>00056 <a name="l00069"></a>00069 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._inherits)</span> <a name="l00070"></a>00070 { <a name="l00071"></a>00071 <a name="l00072"></a>00072 <span class="keyword">private</span>: <a name="l00073"></a>00073 <span class="comment">// Pointer back to IOR.</span> <a name="l00074"></a>00074 <span class="comment">// Use this to dispatch back through IOR vtable.</span> <a name="l00075"></a>00075 ComponentFactory <span class="keyword">self</span>; <a name="l00076"></a>00076 <a name="l00077"></a>00077 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._implementation)</span> <a name="l00078"></a>00078 std::vector< gov::cca::ComponentClassDescription > descriptions; <a name="l00079"></a>00079 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._implementation)</span> <a name="l00080"></a>00080 <a name="l00081"></a>00081 <span class="keyword">private</span>: <a name="l00082"></a>00082 <span class="comment">// private default constructor (required)</span> <a name="l00083"></a>00083 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html" title="Symbol &quot;MPQC.ComponentFactory&quot; (version 0.2).">ComponentFactory_impl</a>() <a name="l00084"></a>00084 {} <a name="l00085"></a>00085 <a name="l00086"></a>00086 <span class="keyword">public</span>: <a name="l00087"></a>00087 <span class="comment">// sidl constructor (required)</span> <a name="l00088"></a>00088 <span class="comment">// Note: alternate Skel constructor doesn't call addref()</span> <a name="l00089"></a>00089 <span class="comment">// (fixes bug #275)</span> <a name="l00090"></a>00090 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html" title="Symbol &quot;MPQC.ComponentFactory&quot; (version 0.2).">ComponentFactory_impl</a>( <span class="keyword">struct</span> MPQC_ComponentFactory__object * s ) : <span class="keyword">self</span>(s, <a name="l00091"></a>00091 <span class="keyword">true</span>) { _ctor(); } <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="comment">// user defined construction</span> <a name="l00094"></a>00094 <span class="keywordtype">void</span> _ctor(); <a name="l00095"></a>00095 <a name="l00096"></a>00096 <span class="comment">// virtual destructor (required)</span> <a name="l00097"></a>00097 <span class="keyword">virtual</span> ~<a class="code" href="classMPQC_1_1ComponentFactory__impl.html" title="Symbol &quot;MPQC.ComponentFactory&quot; (version 0.2).">ComponentFactory_impl</a>() { _dtor(); } <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="comment">// user defined destruction</span> <a name="l00100"></a>00100 <span class="keywordtype">void</span> _dtor(); <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="comment">// static class initializer</span> <a name="l00103"></a>00103 <span class="keyword">static</span> <span class="keywordtype">void</span> _load(); <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="keyword">public</span>: <a name="l00106"></a>00106 <a name="l00110"></a>00110 <span class="keywordtype">void</span> <a name="l00111"></a>00111 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html#c4dbae665e4338862b9f0e2510a53812" title="user defined non-static method.">addDescription</a> ( <a name="l00112"></a>00112 <span class="comment">/* in */</span> const ::std::string& className, <a name="l00113"></a>00113 <span class="comment">/* in */</span> const ::std::string& classAlias <a name="l00114"></a>00114 ) <a name="l00115"></a>00115 <span class="keywordflow">throw</span> () <a name="l00116"></a>00116 ; <a name="l00117"></a>00117 <a name="l00118"></a>00118 <a name="l00128"></a>00128 ::sidl::array< ::gov::cca::ComponentClassDescription> <a name="l00129"></a>00129 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html#0985472a09fce52e9f65d59035bd576e" title="Collect the currently obtainable class name strings from factories known to the builder...">getAvailableComponentClasses</a>() <span class="keywordflow">throw</span> ( <a name="l00130"></a>00130 ::gov::cca::CCAException <a name="l00131"></a>00131 ); <a name="l00132"></a>00132 <a name="l00138"></a>00138 ::gov::cca::Component <a name="l00139"></a>00139 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html#1961e14b927e706f7b77c432f67521bc" title="the component instance returned is nil if the name is unknown to the factory.">createComponentInstance</a> ( <a name="l00140"></a>00140 <span class="comment">/* in */</span> const ::std::string& className <a name="l00141"></a>00141 ) <a name="l00142"></a>00142 <span class="keywordflow">throw</span> () <a name="l00143"></a>00143 ; <a name="l00144"></a>00144 <a name="l00145"></a>00145 <a name="l00151"></a>00151 <span class="keywordtype">void</span> <a name="l00152"></a>00152 <a class="code" href="classMPQC_1_1ComponentFactory__impl.html#ae443cf9c421f0128861da2517a9fa02" title="reclaim any resources the factory may have associated with the port it is using.">destroyComponentInstance</a> ( <a name="l00153"></a>00153 <span class="comment">/* in */</span> const ::std::string& className, <a name="l00154"></a>00154 <span class="comment">/* in */</span> ::gov::cca::Component c <a name="l00155"></a>00155 ) <a name="l00156"></a>00156 <span class="keywordflow">throw</span> () <a name="l00157"></a>00157 ; <a name="l00158"></a>00158 <a name="l00159"></a>00159 }; <span class="comment">// end class ComponentFactory_impl</span> <a name="l00160"></a>00160 <a name="l00161"></a>00161 } <span class="comment">// end namespace MPQC</span> <a name="l00162"></a>00162 <a name="l00163"></a>00163 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._misc)</span> <a name="l00164"></a>00164 <span class="comment">// Put miscellaneous things here...</span> <a name="l00165"></a>00165 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._misc)</span> <a name="l00166"></a>00166 <a name="l00167"></a>00167 <span class="preprocessor">#endif</span> </pre></div></div> <hr> <address> <small> Generated at Wed Oct 14 14:12:10 2009 for <a href="http://www.mpqc.org">MPQC</a> 2.3.1 using the documentation package <a href="http://www.doxygen.org">Doxygen</a> 1.5.9. </small> </address> </body> </html>