00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef included_MPQC_ComponentFactory_Impl_hh
00014 #define included_MPQC_ComponentFactory_Impl_hh
00015
00016 #ifndef included_sidl_cxx_hh
00017 #include "sidl_cxx.hh"
00018 #endif
00019 #ifndef included_MPQC_ComponentFactory_IOR_h
00020 #include "MPQC_ComponentFactory_IOR.h"
00021 #endif
00022
00023
00024
00025 #ifndef included_MPQC_ComponentFactory_hh
00026 #include "MPQC_ComponentFactory.hh"
00027 #endif
00028 #ifndef included_gov_cca_CCAException_hh
00029 #include "gov_cca_CCAException.hh"
00030 #endif
00031 #ifndef included_gov_cca_Component_hh
00032 #include "gov_cca_Component.hh"
00033 #endif
00034 #ifndef included_gov_cca_ComponentClassDescription_hh
00035 #include "gov_cca_ComponentClassDescription.hh"
00036 #endif
00037 #ifndef included_sidl_BaseInterface_hh
00038 #include "sidl_BaseInterface.hh"
00039 #endif
00040 #ifndef included_sidl_ClassInfo_hh
00041 #include "sidl_ClassInfo.hh"
00042 #endif
00043
00044
00045
00046
00047
00048
00049 namespace MPQC {
00050
00054 class ComponentFactory_impl
00055
00056
00069
00070 {
00071
00072 private:
00073
00074
00075 ComponentFactory self;
00076
00077
00078 std::vector< gov::cca::ComponentClassDescription > descriptions;
00079
00080
00081 private:
00082
00083 ComponentFactory_impl()
00084 {}
00085
00086 public:
00087
00088
00089
00090 ComponentFactory_impl( struct MPQC_ComponentFactory__object * s ) : self(s,
00091 true) { _ctor(); }
00092
00093
00094 void _ctor();
00095
00096
00097 virtual ~ComponentFactory_impl() { _dtor(); }
00098
00099
00100 void _dtor();
00101
00102
00103 static void _load();
00104
00105 public:
00106
00110 void
00111 addDescription (
00112 const ::std::string& className,
00113 const ::std::string& classAlias
00114 )
00115 throw ()
00116 ;
00117
00118
00128 ::sidl::array< ::gov::cca::ComponentClassDescription>
00129 getAvailableComponentClasses() throw (
00130 ::gov::cca::CCAException
00131 );
00132
00138 ::gov::cca::Component
00139 createComponentInstance (
00140 const ::std::string& className
00141 )
00142 throw ()
00143 ;
00144
00145
00151 void
00152 destroyComponentInstance (
00153 const ::std::string& className,
00154 ::gov::cca::Component c
00155 )
00156 throw ()
00157 ;
00158
00159 };
00160
00161 }
00162
00163
00164
00165
00166
00167 #endif