#include "serverChannelImpl.h"
Definition at line 20 of file serverChannelImpl.h.
epics::pvAccess::ServerChannel::ServerChannel |
( |
Channel::shared_pointer const & |
channel, |
|
|
const ChannelRequester::shared_pointer & |
requester, |
|
|
pvAccessID |
cid, |
|
|
pvAccessID |
sid |
|
) |
| |
Create server channel for given process variable.
- Parameters
-
channel | local channel. |
cid | channel CID. |
sid | channel SID. |
css | channel security session. |
Definition at line 19 of file serverChannelImpl.cpp.
const ChannelProcessRequester::weak_pointer requester
#define THROW_BASE_EXCEPTION(msg)
static size_t num_instances
epics::pvAccess::ServerChannel::~ServerChannel |
( |
| ) |
|
Definition at line 123 of file serverChannelImpl.cpp.
125 GetFieldRequester::shared_pointer prev;
128 if(_active_requester.get()==req)
129 prev.swap(_active_requester);
void epics::pvAccess::ServerChannel::destroy |
( |
| ) |
|
Definition at line 63 of file serverChannelImpl.cpp.
69 if (_destroyed)
return;
84 for(_requests_t::const_iterator it=reqs.begin(), end=reqs.end(); it!=end; ++it)
86 const _requests_t::mapped_type& req = it->second;
A lock for multithreading.
const Channel::shared_pointer& epics::pvAccess::ServerChannel::getChannel |
( |
| ) |
const |
|
inline |
pvAccessID epics::pvAccess::ServerChannel::getCID |
( |
| ) |
const |
|
inline |
may return NULL
Definition at line 52 of file serverChannelImpl.cpp.
55 _requests_t::iterator iter = _requests.find(
id);
56 if(iter != _requests.end())
60 return BaseChannelRequester::shared_pointer();
A lock for multithreading.
pvAccessID epics::pvAccess::ServerChannel::getSID |
( |
| ) |
const |
|
inline |
void epics::pvAccess::ServerChannel::installGetField |
( |
const GetFieldRequester::shared_pointer & |
gf | ) |
|
Definition at line 110 of file serverChannelImpl.cpp.
112 GetFieldRequester::shared_pointer prev;
115 prev.swap(_active_requester);
116 _active_requester = gf;
static Status error(const std::string &m)
std::tr1::shared_ptr< const Field > FieldConstPtr
epics::pvAccess::ServerChannel::POINTER_DEFINITIONS |
( |
ServerChannel |
| ) |
|
void epics::pvAccess::ServerChannel::printInfo |
( |
| ) |
const |
void epics::pvAccess::ServerChannel::printInfo |
( |
FILE * |
fd | ) |
const |
Definition at line 104 of file serverChannelImpl.cpp.
106 fprintf(fd,
"CLASS : %s\n",
typeid(*this).name());
107 fprintf(fd,
"CHANNEL : %s\n",
typeid(*_channel).name());
Definition at line 35 of file serverChannelImpl.cpp.
38 if(_destroyed)
throw std::logic_error(
"Can't registerRequest() for destory'd server channel");
A lock for multithreading.
void epics::pvAccess::ServerChannel::unregisterRequest |
( |
pvAccessID |
id | ) |
|
Definition at line 42 of file serverChannelImpl.cpp.
45 _requests_t::iterator iter = _requests.find(
id);
46 if(iter != _requests.end())
48 _requests.erase(iter);
A lock for multithreading.
size_t epics::pvAccess::ServerChannel::num_instances |
|
static |
The documentation for this class was generated from the following files: