Definition at line 28 of file pvaClientChannel.cpp.
epics::pvaClient::PvaClientGetCache::PvaClientGetCache |
( |
| ) |
|
|
inline |
epics::pvaClient::PvaClientGetCache::~PvaClientGetCache |
( |
| ) |
|
|
inline |
void epics::pvaClient::PvaClientGetCache::addGet |
( |
string const & |
request, |
|
|
PvaClientGetPtr const & |
pvaClientGet |
|
) |
| |
Definition at line 51 of file pvaClientChannel.cpp.
53 map<string,PvaClientGetPtr>::iterator iter = pvaClientGetMap.find(
request);
54 if(iter!=pvaClientGetMap.end()) {
55 throw std::runtime_error(
"pvaClientGetCache::addGet pvaClientGet already cached");
57 pvaClientGetMap.insert(std::pair<string,PvaClientGetPtr>(
request,pvaClientGet));
size_t epics::pvaClient::PvaClientGetCache::cacheSize |
( |
| ) |
|
PvaClientGetPtr epics::pvaClient::PvaClientGetCache::getGet |
( |
string const & |
request | ) |
|
Definition at line 44 of file pvaClientChannel.cpp.
46 map<string,PvaClientGetPtr>::iterator iter = pvaClientGetMap.find(
request);
47 if(iter!=pvaClientGetMap.end())
return iter->second;
std::tr1::shared_ptr< PvaClientGet > PvaClientGetPtr
void epics::pvaClient::PvaClientGetCache::showCache |
( |
| ) |
|
Definition at line 60 of file pvaClientChannel.cpp.
62 map<string,PvaClientGetPtr>::iterator iter;
63 for(iter = pvaClientGetMap.begin(); iter != pvaClientGetMap.end(); ++iter)
65 cout <<
" " << iter->first << endl;
The documentation for this class was generated from the following file: