<!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_SimpleDriver_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_SimpleDriver_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_SimpleDriver_Impl.hh</span> <a name="l00003"></a>00003 <span class="comment">// Symbol: MPQC.SimpleDriver-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.SimpleDriver</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_SimpleDriver_Impl_hh</span> <a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define included_MPQC_SimpleDriver_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_SimpleDriver_IOR_h</span> <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#include "MPQC_SimpleDriver_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_SimpleDriver_hh</span> <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include "MPQC_SimpleDriver.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_Services_hh</span> <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#include "gov_cca_Services.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_sidl_BaseInterface_hh</span> <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#include "sidl_BaseInterface.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_ClassInfo_hh</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#include "sidl_ClassInfo.hh"</span> <a name="l00039"></a>00039 <span class="preprocessor">#endif</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._includes)</span> <a name="l00043"></a>00043 <span class="preprocessor">#include "Chemistry_QC_ModelFactory.hh"</span> <a name="l00044"></a>00044 <span class="preprocessor">#include "Chemistry_QC_Model.hh"</span> <a name="l00045"></a>00045 <span class="preprocessor">#include "Chemistry_Molecule.hh"</span> <a name="l00046"></a>00046 <span class="preprocessor">#include "dc/babel/babel-cca/server/ccaffeine_TypeMap.hh"</span> <a name="l00047"></a>00047 <span class="preprocessor">#include "dc/babel/babel-cca/server/ccaffeine_ports_PortTranslator.hh"</span> <a name="l00048"></a>00048 <span class="preprocessor">#include "cca.h"</span> <a name="l00049"></a>00049 <span class="preprocessor">#include "util/IO.h"</span> <a name="l00050"></a>00050 <span class="preprocessor">#include "jc++/jc++.h"</span> <a name="l00051"></a>00051 <span class="preprocessor">#include "jc++/util/jc++util.h"</span> <a name="l00052"></a>00052 <span class="preprocessor">#include "parameters/parametersStar.h"</span> <a name="l00053"></a>00053 <span class="preprocessor">#include "port/portInterfaces.h"</span> <a name="l00054"></a>00054 <span class="preprocessor">#include "port/supportInterfaces.h"</span> <a name="l00055"></a>00055 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._includes)</span> <a name="l00056"></a>00056 <a name="l00057"></a>00057 <span class="keyword">namespace </span>MPQC { <a name="l00058"></a>00058 <a name="l00062"></a><a class="code" href="classMPQC_1_1SimpleDriver__impl.html">00062</a> <span class="keyword">class </span><a class="code" href="classMPQC_1_1SimpleDriver__impl.html" title="Symbol &quot;MPQC.SimpleDriver&quot; (version 0.2).">SimpleDriver_impl</a> <a name="l00063"></a>00063 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._inherits)</span> <a name="l00064"></a>00064 <span class="comment">// Insert-Code-Here {MPQC.SimpleDriver._inherits} (optional inheritance here)</span> <a name="l00065"></a>00065 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._inherits)</span> <a name="l00066"></a>00066 { <a name="l00067"></a>00067 <a name="l00068"></a>00068 <span class="keyword">private</span>: <a name="l00069"></a>00069 <span class="comment">// Pointer back to IOR.</span> <a name="l00070"></a>00070 <span class="comment">// Use this to dispatch back through IOR vtable.</span> <a name="l00071"></a>00071 SimpleDriver <span class="keyword">self</span>; <a name="l00072"></a>00072 <a name="l00073"></a>00073 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._implementation)</span> <a name="l00074"></a>00074 <a name="l00075"></a>00075 gov::cca::Services services_; <a name="l00076"></a>00076 Chemistry::QC::ModelFactory factory_; <a name="l00077"></a>00077 Chemistry::QC::Model model_; <a name="l00078"></a>00078 Chemistry::Molecule molecule_; <a name="l00079"></a>00079 BoolParameter *grad_param_; <a name="l00080"></a>00080 <span class="keywordtype">bool</span> do_grad_; <a name="l00081"></a>00081 <a name="l00082"></a>00082 ConfigurableParameterPort* <a name="l00083"></a>00083 setup_parameters(ConfigurableParameterFactory *); <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._implementation)</span> <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">private</span>: <a name="l00088"></a>00088 <span class="comment">// private default constructor (required)</span> <a name="l00089"></a>00089 <a class="code" href="classMPQC_1_1SimpleDriver__impl.html" title="Symbol &quot;MPQC.SimpleDriver&quot; (version 0.2).">SimpleDriver_impl</a>() <a name="l00090"></a>00090 {} <a name="l00091"></a>00091 <a name="l00092"></a>00092 <span class="keyword">public</span>: <a name="l00093"></a>00093 <span class="comment">// sidl constructor (required)</span> <a name="l00094"></a>00094 <span class="comment">// Note: alternate Skel constructor doesn't call addref()</span> <a name="l00095"></a>00095 <span class="comment">// (fixes bug #275)</span> <a name="l00096"></a>00096 <a class="code" href="classMPQC_1_1SimpleDriver__impl.html" title="Symbol &quot;MPQC.SimpleDriver&quot; (version 0.2).">SimpleDriver_impl</a>( <span class="keyword">struct</span> MPQC_SimpleDriver__object * s ) : <span class="keyword">self</span>(s, <a name="l00097"></a>00097 <span class="keyword">true</span>) { _ctor(); } <a name="l00098"></a>00098 <a name="l00099"></a>00099 <span class="comment">// user defined construction</span> <a name="l00100"></a>00100 <span class="keywordtype">void</span> _ctor(); <a name="l00101"></a>00101 <a name="l00102"></a>00102 <span class="comment">// virtual destructor (required)</span> <a name="l00103"></a>00103 <span class="keyword">virtual</span> ~<a class="code" href="classMPQC_1_1SimpleDriver__impl.html" title="Symbol &quot;MPQC.SimpleDriver&quot; (version 0.2).">SimpleDriver_impl</a>() { _dtor(); } <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="comment">// user defined destruction</span> <a name="l00106"></a>00106 <span class="keywordtype">void</span> _dtor(); <a name="l00107"></a>00107 <a name="l00108"></a>00108 <span class="comment">// static class initializer</span> <a name="l00109"></a>00109 <span class="keyword">static</span> <span class="keywordtype">void</span> _load(); <a name="l00110"></a>00110 <a name="l00111"></a>00111 <span class="keyword">public</span>: <a name="l00112"></a>00112 <a name="l00113"></a>00113 <a name="l00131"></a>00131 <span class="keywordtype">void</span> <a name="l00132"></a>00132 <a class="code" href="classMPQC_1_1SimpleDriver__impl.html#e8a200b99abdf50a4bf6d26d69a5f42c" title="Starts up a component presence in the calling framework.">setServices</a> ( <a name="l00133"></a>00133 <span class="comment">/* in */</span> ::gov::cca::Services services <a name="l00134"></a>00134 ) <a name="l00135"></a>00135 <span class="keywordflow">throw</span> ( <a name="l00136"></a>00136 ::gov::cca::CCAException <a name="l00137"></a>00137 ); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <a name="l00146"></a>00146 int32_t <a name="l00147"></a>00147 <a class="code" href="classMPQC_1_1SimpleDriver__impl.html#a378579b7656e7a9e522380fb7a90f73" title="Execute some encapsulated functionality on the component.">go</a>() <span class="keywordflow">throw</span> () <a name="l00148"></a>00148 ; <a name="l00149"></a>00149 }; <span class="comment">// end class SimpleDriver_impl</span> <a name="l00150"></a>00150 <a name="l00151"></a>00151 } <span class="comment">// end namespace MPQC</span> <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="comment">// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._misc)</span> <a name="l00154"></a>00154 <span class="comment">// Insert-Code-Here {MPQC.SimpleDriver._misc} (miscellaneous things)</span> <a name="l00155"></a>00155 <span class="comment">// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._misc)</span> <a name="l00156"></a>00156 <a name="l00157"></a>00157 <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>