Go to the documentation of this file.00001 #ifndef _acsnc_supplier_comp_impl_h_
00002 #define _acsnc_supplier_comp_impl_h_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __cplusplus
00034 #error This is a C++ include file and cannot be used from plain C
00035 #endif
00036
00037 #include <baci.h>
00038 #include <acscomponentImpl.h>
00039 #include "EventComponentS.h"
00040 #include "acsncSimpleSupplier.h"
00041
00042 using namespace baci;
00043
00047 class SupplierCompImpl: public virtual acscomponent::ACSComponentImpl,
00048 public virtual POA_demo::SupplierComp
00049 {
00050 public:
00051
00058 SupplierCompImpl(const ACE_CString& name,
00059 maci::ContainerServices *);
00060
00064 virtual ~SupplierCompImpl();
00065
00066 static void sendEventsTh(void *arg);
00067
00068
00069 int getNumEvents()
00070 {
00071 return m_numEvents;
00072 }
00073
00074 void publishEvent(const acsnc::EventDescription event)
00075 {
00076 if(m_testSupplier_p != NULL)
00077 {
00078 m_testSupplier_p->publishData<acsnc::EventDescription>(event);
00079 }
00080 }
00081
00082
00083 virtual void
00084 sendEvents(short numEvents);
00085
00086 virtual void
00087 testReconn1(CORBA::Boolean autoreconnect,CORBA::Boolean ncRestarted);
00088
00089 private:
00090 nc::SimpleSupplier *m_testSupplier_p;
00091 int m_numEvents;
00092 };
00093
00094 #endif