00001
#ifndef _acsnc_archive_consumer_comp_impl_h_
00002
#define _acsnc_archive_consumer_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 "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