MPQC 2.3.1

- Main Page
- Related Pages
- Classes
- Files

- File List

MPQC_ComponentFactory_Impl.hh
1 //
2 // File: MPQC_ComponentFactory_Impl.hh
3 // Symbol: MPQC.ComponentFactory-v0.2
4 // Symbol Type: class
5 // Babel Version: 0.10.2
6 // Description: Server-side implementation for MPQC.ComponentFactory
7 //
8 // WARNING: Automatically generated; only changes within splicers preserved
9 //
10 // babel-version = 0.10.2
11 //
12
13 #ifndef included_MPQC_ComponentFactory_Impl_hh
14 #define included_MPQC_ComponentFactory_Impl_hh
15
16 #ifndef included_sidl_cxx_hh
17 #include "sidl_cxx.hh"
18 #endif
19 #ifndef included_MPQC_ComponentFactory_IOR_h
20 #include "MPQC_ComponentFactory_IOR.h"
21 #endif
22 //
23 // Includes for all method dependencies.
24 //
25 #ifndef included_MPQC_ComponentFactory_hh
26 #include "MPQC_ComponentFactory.hh"
27 #endif
28 #ifndef included_gov_cca_CCAException_hh
29 #include "gov_cca_CCAException.hh"
30 #endif
31 #ifndef included_gov_cca_Component_hh
32 #include "gov_cca_Component.hh"
33 #endif
34 #ifndef included_gov_cca_ComponentClassDescription_hh
35 #include "gov_cca_ComponentClassDescription.hh"
36 #endif
37 #ifndef included_sidl_BaseInterface_hh
38 #include "sidl_BaseInterface.hh"
39 #endif
40 #ifndef included_sidl_ClassInfo_hh
41 #include "sidl_ClassInfo.hh"
42 #endif
43
44
45 // DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._includes)
46 // Put additional includes or other arbitrary code here...
47 // DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._includes)
48
49 namespace MPQC {
50
54 class ComponentFactory_impl
55 // DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._inherits)
56
69 // DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._inherits)
70 {
71
72 private:
73 // Pointer back to IOR.
74 // Use this to dispatch back through IOR vtable.
75 ComponentFactory self;
76
77 // DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._implementation)
78 std::vector< gov::cca::ComponentClassDescription > descriptions;
79 // DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._implementation)
80
81 private:
82 // private default constructor (required)
83 ComponentFactory_impl()
84 {}
85
86 public:
87 // sidl constructor (required)
88 // Note: alternate Skel constructor doesn't call addref()
89 // (fixes bug #275)
90 ComponentFactory_impl( struct MPQC_ComponentFactory__object * s ) : self(s,
91 true) { _ctor(); }
92
93 // user defined construction
94 void _ctor();
95
96 // virtual destructor (required)
97 virtual ~ComponentFactory_impl() { _dtor(); }
98
99 // user defined destruction
100 void _dtor();
101
102 // static class initializer
103 static void _load();
104
105 public:
106
110 void
111 addDescription (
112 /* in */ const ::std::string& className,
113 /* in */ const ::std::string& classAlias
114 )
115 throw ()
116 ;
117
118
128 ::sidl::array< ::gov::cca::ComponentClassDescription>
129 getAvailableComponentClasses() throw (
130 ::gov::cca::CCAException
131 );
132
138 ::gov::cca::Component
139 createComponentInstance (
140 /* in */ const ::std::string& className
141 )
142 throw ()
143 ;
144
145
151 void
152 destroyComponentInstance (
153 /* in */ const ::std::string& className,
154 /* in */ ::gov::cca::Component c
155 )
156 throw ()
157 ;
158
159 }; // end class ComponentFactory_impl
160
161 } // end namespace MPQC
162
163 // DO-NOT-DELETE splicer.begin(MPQC.ComponentFactory._misc)
164 // Put miscellaneous things here...
165 // DO-NOT-DELETE splicer.end(MPQC.ComponentFactory._misc)
166
167 #endif