pvAccessCPP
7.1.7
|
An instance of a Client or Server. More...
#include <client/pv/pvAccess.h>
Public Types | |
typedef std::tr1::shared_ptr < ChannelProvider > | shared_pointer |
typedef std::tr1::shared_ptr < const ChannelProvider > | const_shared_pointer |
typedef std::tr1::weak_ptr < ChannelProvider > | weak_pointer |
typedef std::tr1::weak_ptr < const ChannelProvider > | const_weak_pointer |
Public Member Functions | |
virtual std::string | getProviderName ()=0 |
Get the provider name. More... | |
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. More... | |
virtual ChannelFind::shared_pointer | channelList (ChannelListRequester::shared_pointer const &requester) |
Request a list of all valid channel names for this provider. More... | |
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. More... | |
virtual void | destroy () |
Destroy this instance. | |
Static Public Attributes | |
static const short | PRIORITY_MIN = 0 |
Minimal priority. More... | |
static const short | PRIORITY_MAX = 99 |
Maximal priority. More... | |
static const short | PRIORITY_DEFAULT = PRIORITY_MIN |
Default priority. More... | |
static const short | PRIORITY_LINKS_DB = PRIORITY_MAX |
DB links priority. More... | |
static const short | PRIORITY_ARCHIVE = (PRIORITY_MAX + PRIORITY_MIN) / 2 |
Archive priority. More... | |
static const short | PRIORITY_OPI = PRIORITY_MIN |
OPI priority. More... | |
static size_t | num_instances |
An instance of a Client or Server.
Uniquely configurable (via ChannelProviderFactory::newInstance(Configuration*)
Definition at line 1230 of file pvAccess.h.
|
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.
name | The channel name. |
requester | The 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.
requester | The Requester. |
|
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.
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. |
|
pure virtual |
Get the provider name.
|
static |
Archive priority.
Definition at line 1245 of file pvAccess.h.
|
static |
Default priority.
Definition at line 1241 of file pvAccess.h.
|
static |
DB links priority.
Definition at line 1243 of file pvAccess.h.
|
static |
Maximal priority.
Definition at line 1239 of file pvAccess.h.
|
static |
Minimal priority.
Definition at line 1237 of file pvAccess.h.
|
static |
OPI priority.
Definition at line 1247 of file pvAccess.h.