/* * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. * * Author George S. McIntyre , 2023 * */ #include #include "channel.h" #include "utilpvt.h" namespace pvxs { namespace ioc { /** * Construct a group channel from a given db channel name * * @param name the db channel name */ Channel::Channel(const char* name) :std::shared_ptr(std::shared_ptr(dbChannelCreate(name), [](dbChannel* ch) { if (ch) { dbChannelDelete(ch); } })) { if(!*this) throw std::runtime_error(SB()<<"Invalid PV: "<