Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

acsncArchiveConsumerCompImpl.h

Go to the documentation of this file.
00001 #ifndef _acsnc_archive_consumer_comp_impl_h_ 00002 #define _acsnc_archive_consumer_comp_impl_h_ 00003 /******************************************************************************* 00004 * ALMA - Atacama Large Millimiter Array 00005 * (c) Associated Universities Inc., 2002 00006 * (c) European Southern Observatory, 2002 00007 * Copyright by ESO (in the framework of the ALMA collaboration) 00008 * and Cosylab 2002, All rights reserved 00009 * 00010 * This library is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 2.1 of the License, or (at your option) any later version. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * "@(#) $Id: acsncArchiveConsumerCompImpl.h,v 1.6 2006/09/01 02:20:54 cparedes Exp $" 00025 * 00026 * who when what 00027 * -------- -------- ---------------------------------------------- 00028 * david 2002-09-26 added more comments 00029 * david 25/09/02 created 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 "acsncArchiveConsumer.h" 00041 00042 using namespace baci; 00043 00047 class ArchiveConsumerCompImpl: public virtual acscomponent::ACSComponentImpl, 00048 public virtual POA_demo::ConsumerComp, 00049 public virtual nc::ArchiveConsumer::ArchiveHandler 00050 { 00051 public: 00052 /* ----------------------------------------------------------------*/ 00059 ArchiveConsumerCompImpl(const ACE_CString& name, 00060 maci::ContainerServices *); 00061 00065 virtual ~ArchiveConsumerCompImpl(); 00066 00067 // 00068 virtual void 00069 receive(ACS::Time timeStamp, 00070 const std::string& device, 00071 const std::string& parameter, 00072 const CORBA::Any& value) 00073 { 00074 if(m_count<5) 00075 { 00076 ACS_SHORT_LOG((LM_ALERT, "myHandlerFunction()...device is:%s", device.c_str())); 00077 m_count++; 00078 } 00079 } 00080 00081 private: 00082 // 00083 int m_count; 00084 00085 // 00086 nc::ArchiveConsumer *m_testConsumer_p; 00087 }; 00088 00089 #endif

Generated on Thu Apr 30 02:30:49 2009 for ACS C++ API by doxygen 1.3.8