Skip to content

Commit

Permalink
restore use of PVACCESS_ALL_RPOVIDERS
Browse files Browse the repository at this point in the history
  • Loading branch information
sveseli committed Mar 13, 2018
1 parent 5db28b0 commit 26d066f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/pvaccess/PvaServer.cpp
Expand Up @@ -9,30 +9,29 @@
#include "InvalidRequest.h"
#include "PvaServer.h"

const char* PvaServer::AllProviders("<all>");
PvaPyLogger PvaServer::logger("PvaServer");

PvaServer::PvaServer() :
recordMap()
{
epics::pvDatabase::ChannelProviderLocalPtr channelProvider = epics::pvDatabase::getChannelProviderLocal();
server = epics::pvAccess::startPVAServer(AllProviders, 0, true, true);
server = epics::pvAccess::startPVAServer(epics::pvAccess::PVACCESS_ALL_PROVIDERS, 0, true, true);
}

PvaServer::PvaServer(const std::string& channelName, const PvObject& pvObject) :
recordMap()
{
initRecord(channelName, pvObject);
epics::pvDatabase::ChannelProviderLocalPtr channelProvider = epics::pvDatabase::getChannelProviderLocal();
server = epics::pvAccess::startPVAServer(AllProviders, 0, true, true);
server = epics::pvAccess::startPVAServer(epics::pvAccess::PVACCESS_ALL_PROVIDERS, 0, true, true);
}

PvaServer::PvaServer(const std::string& channelName, const PvObject& pvObject, const boost::python::object& onWriteCallback) :
recordMap()
{
initRecord(channelName, pvObject, onWriteCallback);
epics::pvDatabase::ChannelProviderLocalPtr channelProvider = epics::pvDatabase::getChannelProviderLocal();
server = epics::pvAccess::startPVAServer(AllProviders, 0, true, true);
server = epics::pvAccess::startPVAServer(epics::pvAccess::PVACCESS_ALL_PROVIDERS, 0, true, true);
}

PvaServer::~PvaServer()
Expand Down
2 changes: 0 additions & 2 deletions src/pvaccess/PvaServer.h
Expand Up @@ -17,8 +17,6 @@
class PvaServer
{
public:
static const char* AllProviders;

PvaServer();
PvaServer(const std::string& channelName, const PvObject& pvObject);
PvaServer(const std::string& channelName, const PvObject& pvObject, const boost::python::object& onWriteCallback);
Expand Down

0 comments on commit 26d066f

Please sign in to comment.