2
// File: MPQC_SimpleDriver_Impl.hh
3
// Symbol: MPQC.SimpleDriver-v0.2
5
// Babel Version: 0.10.2
6
// Description: Server-side implementation for MPQC.SimpleDriver
8
// WARNING: Automatically generated; only changes within splicers preserved
10
// babel-version = 0.10.2
13
#ifndef included_MPQC_SimpleDriver_Impl_hh
14
#define included_MPQC_SimpleDriver_Impl_hh
16
#ifndef included_sidl_cxx_hh
17
#include "sidl_cxx.hh"
19
#ifndef included_MPQC_SimpleDriver_IOR_h
20
#include "MPQC_SimpleDriver_IOR.h"
23
// Includes for all method dependencies.
25
#ifndef included_MPQC_SimpleDriver_hh
26
#include "MPQC_SimpleDriver.hh"
28
#ifndef included_gov_cca_CCAException_hh
29
#include "gov_cca_CCAException.hh"
31
#ifndef included_gov_cca_Services_hh
32
#include "gov_cca_Services.hh"
34
#ifndef included_sidl_BaseInterface_hh
35
#include "sidl_BaseInterface.hh"
37
#ifndef included_sidl_ClassInfo_hh
38
#include "sidl_ClassInfo.hh"
42
// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._includes)
43
#include "Chemistry_QC_ModelFactory.hh"
44
#include "Chemistry_QC_Model.hh"
45
#include "Chemistry_Molecule.hh"
46
#include "dc/babel/babel-cca/server/ccaffeine_TypeMap.hh"
47
#include "dc/babel/babel-cca/server/ccaffeine_ports_PortTranslator.hh"
50
#include "jc++/jc++.h"
51
#include "jc++/util/jc++util.h"
52
#include "parameters/parametersStar.h"
53
#include "port/portInterfaces.h"
54
#include "port/supportInterfaces.h"
55
// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._includes)
60
* Symbol "MPQC.SimpleDriver" (version 0.2)
62
class SimpleDriver_impl
63
// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._inherits)
64
// Insert-Code-Here {MPQC.SimpleDriver._inherits} (optional inheritance here)
65
// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._inherits)
69
// Pointer back to IOR.
70
// Use this to dispatch back through IOR vtable.
73
// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._implementation)
75
gov::cca::Services services_;
76
Chemistry::QC::ModelFactory factory_;
77
Chemistry::QC::Model model_;
78
Chemistry::Molecule molecule_;
79
BoolParameter *grad_param_;
82
ConfigurableParameterPort*
83
setup_parameters(ConfigurableParameterFactory *);
85
// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._implementation)
88
// private default constructor (required)
93
// sidl constructor (required)
94
// Note: alternate Skel constructor doesn't call addref()
96
SimpleDriver_impl( struct MPQC_SimpleDriver__object * s ) : self(s,
99
// user defined construction
102
// virtual destructor (required)
103
virtual ~SimpleDriver_impl() { _dtor(); }
105
// user defined destruction
108
// static class initializer
115
* Starts up a component presence in the calling framework.
116
* @param Svc the component instance's handle on the framework world.
117
* Contracts concerning Svc and setServices:
119
* The component interaction with the CCA framework
120
* and Ports begins on the call to setServices by the framework.
122
* This function is called exactly once for each instance created
125
* The argument Svc will never be nil/null.
127
* Those uses ports which are automatically connected by the framework
128
* (so-called service-ports) may be obtained via getPort during
133
/* in */ ::gov::cca::Services services
136
::gov::cca::CCAException
141
* Execute some encapsulated functionality on the component.
142
* Return 0 if ok, -1 if internal error but component may be
143
* used further, and -2 if error so severe that component cannot
144
* be further used safely.
149
}; // end class SimpleDriver_impl
151
} // end namespace MPQC
153
// DO-NOT-DELETE splicer.begin(MPQC.SimpleDriver._misc)
154
// Insert-Code-Here {MPQC.SimpleDriver._misc} (miscellaneous things)
155
// DO-NOT-DELETE splicer.end(MPQC.SimpleDriver._misc)