// Copyright information and license terms for this software can be // found in the file LICENSE that is included with the distribution #if PVA_API_VERSION >= 450 #ifndef CHANNEL_STATE_REQUESTER_IMPL_H #define CHANNEL_STATE_REQUESTER_IMPL_H #include #include #include "PvaClient.h" class ChannelStateRequesterImpl : public epics::pvaClient::PvaClientChannelStateChangeRequester { public: POINTER_DEFINITIONS(ChannelStateRequesterImpl); ChannelStateRequesterImpl(bool& connected_) : connected(connected_) {} virtual ~ChannelStateRequesterImpl() {} bool isConnected() const {return connected;} // PvaClientChannelStateChangeRequester interface virtual void channelStateChange(const epics::pvaClient::PvaClientChannelPtr& channel, bool isConnected) {connected=isConnected;} private: bool& connected; }; #endif // CHANNEL_STATE_REQUESTER_IMPL_H #endif