boilerplate reduction
This commit is contained in:
@ -84,12 +84,6 @@ GWChannel::getChannelRequester()
|
||||
return requester;
|
||||
}
|
||||
|
||||
bool
|
||||
GWChannel::isConnected()
|
||||
{
|
||||
return entry->channel->isConnected();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
GWChannel::getField(pva::GetFieldRequester::shared_pointer const & requester,
|
||||
@ -253,9 +247,6 @@ GWChannel::createChannelArray(
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
GWChannel::printInfo()
|
||||
{ printInfo(std::cout); }
|
||||
void
|
||||
GWChannel::printInfo(std::ostream& out)
|
||||
{
|
||||
|
@ -37,7 +37,6 @@ struct GWChannel : public epics::pvAccess::Channel
|
||||
virtual ConnectionState getConnectionState();
|
||||
virtual std::string getChannelName();
|
||||
virtual std::tr1::shared_ptr<epics::pvAccess::ChannelRequester> getChannelRequester();
|
||||
virtual bool isConnected();
|
||||
|
||||
virtual void getField(epics::pvAccess::GetFieldRequester::shared_pointer const & requester,
|
||||
std::string const & subField);
|
||||
@ -64,7 +63,6 @@ struct GWChannel : public epics::pvAccess::Channel
|
||||
epics::pvAccess::ChannelArrayRequester::shared_pointer const & channelArrayRequester,
|
||||
epics::pvData::PVStructure::shared_pointer const & pvRequest);
|
||||
|
||||
virtual void printInfo();
|
||||
virtual void printInfo(std::ostream& out);
|
||||
|
||||
};
|
||||
|
@ -61,21 +61,6 @@ GWServerChannelProvider::channelFind(std::string const & channelName,
|
||||
return ret;
|
||||
}
|
||||
|
||||
pva::ChannelFind::shared_pointer
|
||||
GWServerChannelProvider::channelList(pva::ChannelListRequester::shared_pointer const & channelListRequester)
|
||||
{
|
||||
std::cerr<<"GWServer does not advertise a channel list\n";
|
||||
return pva::ChannelFind::shared_pointer();
|
||||
}
|
||||
|
||||
pva::Channel::shared_pointer
|
||||
GWServerChannelProvider::createChannel(std::string const & channelName,
|
||||
pva::ChannelRequester::shared_pointer const & channelRequester,
|
||||
short priority)
|
||||
{
|
||||
return createChannel(channelName, channelRequester, priority, "foobar");
|
||||
}
|
||||
|
||||
// The return value of this function is ignored
|
||||
// The newly created channel is given to the ChannelRequester
|
||||
pva::Channel::shared_pointer
|
||||
@ -119,10 +104,6 @@ GWServerChannelProvider::createChannel(std::string const & channelName,
|
||||
return ret; // ignored by caller
|
||||
}
|
||||
|
||||
void GWServerChannelProvider::configure(epics::pvData::PVStructure::shared_pointer /*configuration*/) {
|
||||
std::cout<<"GWServer being configured\n";
|
||||
}
|
||||
|
||||
void GWServerChannelProvider::destroy()
|
||||
{
|
||||
std::cout<<"GWServer destory request\n";
|
||||
|
@ -22,15 +22,11 @@ struct GWServerChannelProvider : public
|
||||
|
||||
virtual epics::pvAccess::ChannelFind::shared_pointer channelFind(std::string const & channelName,
|
||||
epics::pvAccess::ChannelFindRequester::shared_pointer const & channelFindRequester);
|
||||
virtual epics::pvAccess::ChannelFind::shared_pointer channelList(epics::pvAccess::ChannelListRequester::shared_pointer const & channelListRequester);
|
||||
|
||||
virtual epics::pvAccess::Channel::shared_pointer createChannel(std::string const & channelName,
|
||||
epics::pvAccess::ChannelRequester::shared_pointer const & channelRequester,
|
||||
short priority = PRIORITY_DEFAULT);
|
||||
using epics::pvAccess::ChannelProvider::createChannel;
|
||||
virtual epics::pvAccess::Channel::shared_pointer createChannel(std::string const & channelName,
|
||||
epics::pvAccess::ChannelRequester::shared_pointer const & channelRequester,
|
||||
short priority, std::string const & addressx);
|
||||
virtual void configure(epics::pvData::PVStructure::shared_pointer /*configuration*/);
|
||||
virtual void destroy();
|
||||
|
||||
GWServerChannelProvider(const std::tr1::shared_ptr<epics::pvAccess::Configuration>& conf);
|
||||
|
Reference in New Issue
Block a user