An instance of a Client or Server.
More...
#include <client/pv/pvAccess.h>
|
| virtual std::string | getProviderName ()=0 |
| | Get the provider name.
|
| |
| virtual ChannelFind::shared_pointer | channelFind (std::string const &name, ChannelFindRequester::shared_pointer const &requester)=0 |
| | Test to see if this provider has the named channel.
|
| |
| virtual ChannelFind::shared_pointer | channelList (ChannelListRequester::shared_pointer const &requester) |
| | Request a list of all valid channel names for this provider.
|
| |
|
virtual Channel::shared_pointer | createChannel (std::string const &name, ChannelRequester::shared_pointer const &requester=DefaultChannelRequester::build(), short priority=PRIORITY_DEFAULT) |
| | See longer form.
|
| |
| virtual Channel::shared_pointer | createChannel (std::string const &name, ChannelRequester::shared_pointer const &requester, short priority, std::string const &address)=0 |
| | Request a Channel.
|
| |
| virtual void | destroy () |
| | Destroy this instance.
|
| |
An instance of a Client or Server.
Uniquely configurable (via ChannelProviderFactory::newInstance(Configuration*)
Definition at line 1230 of file pvAccess.h.
◆ const_shared_pointer
| std::tr1::shared_ptr<const ChannelProvider> epics::pvAccess::ChannelProvider::const_shared_pointer |
◆ const_weak_pointer
| std::tr1::weak_ptr<const ChannelProvider> epics::pvAccess::ChannelProvider::const_weak_pointer |
◆ shared_pointer
| std::tr1::shared_ptr<ChannelProvider> epics::pvAccess::ChannelProvider::shared_pointer |
◆ weak_pointer
| std::tr1::weak_ptr<ChannelProvider> epics::pvAccess::ChannelProvider::weak_pointer |
◆ channelFind()
| virtual ChannelFind::shared_pointer epics::pvAccess::ChannelProvider::channelFind |
( |
std::string const & | name, |
|
|
ChannelFindRequester::shared_pointer const & | requester ) |
|
pure virtual |
Test to see if this provider has the named channel.
May call ChannelFindRequester::channelFindResult() before returning, or at some time later. If an exception is thrown, then channelFindResult() will never be called.
- Parameters
-
| name | The channel name. |
| requester | The Requester. |
- Returns
- An unique()==true handle for the pending response. May only return NULL if channelFindResult() called with an Error
◆ channelList()
| virtual ChannelFind::shared_pointer epics::pvAccess::ChannelProvider::channelList |
( |
ChannelListRequester::shared_pointer const & | requester | ) |
|
|
virtual |
Request a list of all valid channel names for this provider.
May call ChannelListRequester::channelListResult() before returning, or at some time later. If an exception is thrown, then channelListResult() will never be called.
- Parameters
-
- Returns
- An unique()==true handle for the pending response. May only return NULL if channelFindResult() called with an Error
◆ createChannel()
| virtual Channel::shared_pointer epics::pvAccess::ChannelProvider::createChannel |
( |
std::string const & | name, |
|
|
ChannelRequester::shared_pointer const & | requester, |
|
|
short | priority, |
|
|
std::string const & | address ) |
|
pure virtual |
Request a Channel.
Channel creation is immediate. ChannelRequester::channelCreated() will be called before returning. The shared_ptr which is passed to channelCreated() will also be returned.
Failures during channel creation are delivered to ChannelRequester::channelCreated() with Status::isSuccess()==false.
- Postcondition
- The returned Channel will hold a strong reference to the provided ChannelRequester and to the ChannelProvider through which it is created.
-
The shared_ptr passed to ChannelRequester::channelCreated() is unique. See Uniqueness
-
The new Channel will not hold a strong reference to this ChannelProvider. This provider must be kept alive in order to keep the Channel from being destoryed.
- Parameters
-
| name | The name of the channel. |
| requester | Will receive notifications about channel state changes |
| priority | channel priority, must be PRIORITY_MIN <= priority <= PRIORITY_MAX. |
| address | Implementation dependent condition. eg. A network address to bypass the search phase. Pass an empty() string for default behavour. |
- Returns
- A non-NULL Channel unless channelCreated() called with an Error
◆ destroy()
| virtual void epics::pvAccess::Destroyable::destroy |
( |
| ) |
|
|
inlinevirtualinherited |
◆ getProviderName()
| virtual std::string epics::pvAccess::ChannelProvider::getProviderName |
( |
| ) |
|
|
pure virtual |
Get the provider name.
- Returns
- The name.
◆ num_instances
| size_t epics::pvAccess::ChannelProvider::num_instances |
|
static |
◆ PRIORITY_ARCHIVE
◆ PRIORITY_DEFAULT
| const short epics::pvAccess::ChannelProvider::PRIORITY_DEFAULT = PRIORITY_MIN |
|
static |
◆ PRIORITY_LINKS_DB
| const short epics::pvAccess::ChannelProvider::PRIORITY_LINKS_DB = PRIORITY_MAX |
|
static |
◆ PRIORITY_MAX
| const short epics::pvAccess::ChannelProvider::PRIORITY_MAX = 99 |
|
static |
◆ PRIORITY_MIN
| const short epics::pvAccess::ChannelProvider::PRIORITY_MIN = 0 |
|
static |
◆ PRIORITY_OPI
| const short epics::pvAccess::ChannelProvider::PRIORITY_OPI = PRIORITY_MIN |
|
static |
The documentation for this class was generated from the following file: