![]() |
This is Unofficial EPICS BASE Doxygen Site
|
A Provider based on a list of SharedPV instance. More...
#include "server.h"
Classes | |
| struct | ChannelBuilder |
| Interface for something which can provide Channels. aka A "PV". Typically a SharedPV. More... | |
| struct | Impl |
Public Types | |
| typedef builders_t::const_iterator | const_iterator |
Public Member Functions | |
| POINTER_DEFINITIONS (StaticProvider) | |
| StaticProvider (const std::string &name) | |
| ~StaticProvider () | |
| void | close (bool destroy=false) |
| void | add (const std::string &name, const std::tr1::shared_ptr< ChannelBuilder > &builder) |
| Add a PV (eg. SharedPV) to this provider. More... | |
| std::tr1::shared_ptr< ChannelBuilder > | remove (const std::string &name) |
| std::tr1::shared_ptr< epics::pvAccess::ChannelProvider > | provider () const |
| Fetch the underlying ChannelProvider. Usually to build a ServerContext around. More... | |
| const_iterator | begin () const |
| const_iterator | end () const |
A Provider based on a list of SharedPV instance.
SharedPV instances may be added/removed at any time. So it is only "static" in the sense that the list of PV names is known to StaticProvider at all times.
| typedef builders_t::const_iterator pvas::StaticProvider::const_iterator |
|
explicit |
Build a new, empty, provider.
| name | Provider Name. Only relevant if registerAsServer() is called, then must be unique in this process. |
Definition at line 117 of file server.cpp.
| pvas::StaticProvider::~StaticProvider | ( | ) |
Definition at line 127 of file server.cpp.
| void pvas::StaticProvider::add | ( | const std::string & | name, |
| const std::tr1::shared_ptr< ChannelBuilder > & | builder | ||
| ) |
| StaticProvider::builders_t::const_iterator pvas::StaticProvider::begin | ( | ) | const |
Definition at line 175 of file server.cpp.
| void pvas::StaticProvider::close | ( | bool | destroy = false | ) |
Call Channelbuilder::close(destroy) for all currently added ChannelBuilders.
Definition at line 129 of file server.cpp.
| StaticProvider::builders_t::const_iterator pvas::StaticProvider::end | ( | ) | const |
Definition at line 180 of file server.cpp.
| pvas::StaticProvider::POINTER_DEFINITIONS | ( | StaticProvider | ) |
| std::tr1::shared_ptr< epics::pvAccess::ChannelProvider > pvas::StaticProvider::provider | ( | ) | const |
Fetch the underlying ChannelProvider. Usually to build a ServerContext around.
Definition at line 145 of file server.cpp.
| std::tr1::shared_ptr< StaticProvider::ChannelBuilder > pvas::StaticProvider::remove | ( | const std::string & | name | ) |
Remove a PV. Closes any open Channels to it.
Definition at line 159 of file server.cpp.