00001 #ifndef SCTAPI_SCANMONITORSERVER_H 00002 #define SCTAPI_SCANMONITORSERVER_H 00003 00004 #include <boost/shared_ptr.hpp> 00005 #include <ipc/object.h> 00006 #include "SctApi.hh" 00007 00008 namespace SctApi { 00009 class ScanMonitor; 00010 } 00011 00012 class ScanMonitorServer : public IPCNamedObject<POA_Sct_SctApi::ScanMonitor> { 00013 static int nextNumber; 00014 00015 boost::shared_ptr< ::SctApi::ScanMonitor> m_worker; 00016 SctApi::ScanMonitor &worker() { return *m_worker; } 00017 00018 std::string getServerName(); 00019 public: 00020 ScanMonitorServer(boost::shared_ptr<SctApi::ScanMonitor> mon); 00021 void newBin(CORBA::ULong prevTriggers, CORBA::UShort newBin); 00022 void finishScan(); 00023 }; 00024 00025 #endif 00026 00027