A Provider based on a list of SharedPV instance.
More...
#include <server/pva/server.h>
|
| | StaticProvider (const std::string &name) |
| | Build a new, empty, provider.
|
| |
| void | close (bool destroy=false) |
| | Call Channelbuilder::close(destroy) for all currently added ChannelBuilders.
|
| |
|
void | add (const std::string &name, const std::tr1::shared_ptr< ChannelBuilder > &builder) |
| | Add a PV (eg. SharedPV) to this provider.
|
| |
| std::tr1::shared_ptr< ChannelBuilder > | remove (const std::string &name) |
| | Remove a PV.
|
| |
|
std::tr1::shared_ptr< epics::pvAccess::ChannelProvider > | provider () const |
| | Fetch the underlying ChannelProvider. Usually to build a ServerContext around.
|
| |
|
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.
- See also
- Server API shared_ptr Ownership
Definition at line 105 of file server.h.
◆ const_iterator
| builders_t::const_iterator pvas::StaticProvider::const_iterator |
◆ const_shared_pointer
| std::tr1::shared_ptr<const StaticProvider> pvas::StaticProvider::const_shared_pointer |
◆ const_weak_pointer
| std::tr1::weak_ptr<const StaticProvider> pvas::StaticProvider::const_weak_pointer |
◆ shared_pointer
| std::tr1::shared_ptr<StaticProvider> pvas::StaticProvider::shared_pointer |
◆ weak_pointer
◆ StaticProvider()
| pvas::StaticProvider::StaticProvider |
( |
const std::string & | name | ) |
|
|
explicit |
Build a new, empty, provider.
- Parameters
-
| name | Provider Name. Only relevant if registerAsServer() is called, then must be unique in this process. |
◆ close()
| void pvas::StaticProvider::close |
( |
bool | destroy = false | ) |
|
Call Channelbuilder::close(destroy) for all currently added ChannelBuilders.
- See also
- SharedPV::close()
- Note
- Provider locking rules apply (
- See also
- provider_roles_requester_locking).
◆ remove()
| std::tr1::shared_ptr< ChannelBuilder > pvas::StaticProvider::remove |
( |
const std::string & | name | ) |
|
Remove a PV.
Closes any open Channels to it.
- Returns
- the PV which has been removed.
- Note
- Provider locking rules apply (
- See also
- provider_roles_requester_locking).
The documentation for this class was generated from the following file: