This is Unofficial EPICS BASE Doxygen Site
epics::pvDatabase::ChannelLocal Class Reference

Channel for accessing a PVRecord. More...

#include "channelProviderLocal.h"

+ Inheritance diagram for epics::pvDatabase::ChannelLocal:
+ Collaboration diagram for epics::pvDatabase::ChannelLocal:

Public Member Functions

 POINTER_DEFINITIONS (ChannelLocal)
 
 ChannelLocal (ChannelProviderLocalPtr const &channelProvider, epics::pvAccess::ChannelRequester::shared_pointer const &requester, PVRecordPtr const &pvRecord)
 
virtual ~ChannelLocal ()
 Destructor. More...
 
virtual void destroy ()
 DEPRECATED. More...
 
virtual void detach (PVRecordPtr const &pvRecord)
 Detach from the record. More...
 
virtual std::string getRequesterName ()
 Get the requester name. More...
 
virtual void message (std::string const &message, epics::pvData::MessageType messageType)
 Passes the message to the channel requester. More...
 
virtual epics::pvAccess::ChannelProvider::shared_pointer getProvider ()
 Get the channel provider. More...
 
virtual std::string getRemoteAddress ()
 Get the remote address. More...
 
virtual epics::pvAccess::Channel::ConnectionState getConnectionState ()
 
virtual std::string getChannelName ()
 Get the channel name. More...
 
virtual epics::pvAccess::ChannelRequester::shared_pointer getChannelRequester ()
 Get the channel requester. More...
 
virtual bool isConnected ()
 Is the channel connected? More...
 
virtual void getField (epics::pvAccess::GetFieldRequester::shared_pointer const &requester, std::string const &subField)
 Get the introspection interface for subField. More...
 
virtual epics::pvAccess::AccessRights getAccessRights (epics::pvData::PVField::shared_pointer const &pvField)
 
virtual epics::pvAccess::ChannelProcess::shared_pointer createChannelProcess (epics::pvAccess::ChannelProcessRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelProcess. More...
 
virtual epics::pvAccess::ChannelGet::shared_pointer createChannelGet (epics::pvAccess::ChannelGetRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelGet. More...
 
virtual epics::pvAccess::ChannelPut::shared_pointer createChannelPut (epics::pvAccess::ChannelPutRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelPut. More...
 
virtual epics::pvAccess::ChannelPutGet::shared_pointer createChannelPutGet (epics::pvAccess::ChannelPutGetRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelPutGet. More...
 
virtual epics::pvAccess::ChannelRPC::shared_pointer createChannelRPC (epics::pvAccess::ChannelRPCRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelRPC. More...
 
virtual epics::pvData::Monitor::shared_pointer createMonitor (epics::pvData::MonitorRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a monitor. More...
 
virtual epics::pvAccess::ChannelArray::shared_pointer createChannelArray (epics::pvAccess::ChannelArrayRequester::shared_pointer const &requester, epics::pvData::PVStructurePtr const &pvRequest)
 Create a channelArray. More...
 
virtual void printInfo ()
 calls printInfo(std::cout); More...
 
virtual void printInfo (std::ostream &out)
 displays a message More...
 
- Public Member Functions inherited from epics::pvAccess::Channel
 POINTER_DEFINITIONS (Channel)
 
 Channel ()
 
virtual ~Channel ()
 
virtual void getField (GetFieldRequester::shared_pointer const &requester, std::string const &subField)
 
virtual ChannelProcess::shared_pointer createChannelProcess (ChannelProcessRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual ChannelGet::shared_pointer createChannelGet (ChannelGetRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual ChannelPut::shared_pointer createChannelPut (ChannelPutRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual ChannelPutGet::shared_pointer createChannelPutGet (ChannelPutGetRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual ChannelRPC::shared_pointer createChannelRPC (ChannelRPCRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual Monitor::shared_pointer createMonitor (MonitorRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
virtual ChannelArray::shared_pointer createChannelArray (ChannelArrayRequester::shared_pointer const &requester, epics::pvData::PVStructure::shared_pointer const &pvRequest)
 
- Public Member Functions inherited from epics::pvAccess::Requester
 POINTER_DEFINITIONS (Requester)
 
virtual ~Requester ()
 
virtual void message (std::string const &message, MessageType messageType=errorMessage)
 
- Public Member Functions inherited from epics::pvAccess::Destroyable
 POINTER_DEFINITIONS (Destroyable)
 
- Public Member Functions inherited from epics::pvDatabase::PVRecordClient
 POINTER_DEFINITIONS (PVRecordClient)
 
virtual ~PVRecordClient ()
 Destructor. More...
 

Protected Member Functions

shared_pointer getPtrSelf ()
 
- Protected Member Functions inherited from epics::pvAccess::Destroyable
virtual ~Destroyable ()
 

Additional Inherited Members

- Public Types inherited from epics::pvAccess::Channel
enum  ConnectionState { NEVER_CONNECTED, CONNECTED, DISCONNECTED, DESTROYED }
 
typedef ChannelRequester requester_type
 
- Static Public Attributes inherited from epics::pvAccess::Channel
static size_t num_instances
 
static const char * ConnectionStateNames [] = { "NEVER_CONNECTED", "CONNECTED", "DISCONNECTED", "DESTROYED" }
 

Detailed Description

Channel for accessing a PVRecord.

A Channel for accessing a record in the PVDatabase. It is a complete implementation of Channel

Definition at line 172 of file channelProviderLocal.h.

Constructor & Destructor Documentation

epics::pvDatabase::ChannelLocal::ChannelLocal ( ChannelProviderLocalPtr const &  channelProvider,
epics::pvAccess::ChannelRequester::shared_pointer const &  requester,
PVRecordPtr const &  pvRecord 
)

Constructor

Parameters
channelProviderThe channel provider.
requesterThe client callback.
pvRecordThe record the channel will access.

Definition at line 1227 of file channelLocal.cpp.

1231 :
1232  requester(requester),
1233  provider(provider),
1234  pvRecord(pvRecord)
1235 {
1236  if(pvRecord->getTraceLevel()>0) {
1237  cout << "ChannelLocal::ChannelLocal()"
1238  << " recordName " << pvRecord->getRecordName()
1239  << " requester exists " << (requester ? "true" : "false")
1240  << endl;
1241  }
1242 }
epics::pvDatabase::ChannelLocal::~ChannelLocal ( )
virtual

Destructor.

Definition at line 1244 of file channelLocal.cpp.

1245 {
1246 // cout << "~ChannelLocal()" << endl;
1247 }

Member Function Documentation

ChannelArray::shared_pointer epics::pvDatabase::ChannelLocal::createChannelArray ( epics::pvAccess::ChannelArrayRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelArray.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1488 of file channelLocal.cpp.

1491 {
1492  PVRecordPtr pvr(pvRecord.lock());
1493  if(!pvr) throw std::logic_error("pvRecord is deleted");
1494  if(pvr->getTraceLevel()>0) {
1495  cout << "ChannelLocal::createChannelArray() "
1496  << " recordName " << pvr->getRecordName()
1497  << " requester exists " << (requester ? "true" : "false")
1498  << endl;
1499  }
1500  ChannelArrayLocalPtr channelArray =
1502  getPtrSelf(),
1503  channelArrayRequester,
1504  pvRequest,
1505  pvr);
1506  return channelArray;
1507 }
static ChannelArrayLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelArrayRequester::shared_pointer const &channelArrayRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< ChannelArrayLocal > ChannelArrayLocalPtr
ChannelGet::shared_pointer epics::pvDatabase::ChannelLocal::createChannelGet ( epics::pvAccess::ChannelGetRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelGet.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1381 of file channelLocal.cpp.

1384 {
1385  PVRecordPtr pvr(pvRecord.lock());
1386  if(!pvr) throw std::logic_error("pvRecord is deleted");
1387  if(pvr->getTraceLevel()>0) {
1388  cout << "ChannelLocal::createChannelGet() "
1389  << " recordName " << pvr->getRecordName()
1390  << " requester exists " << (requester ? "true" : "false")
1391  << endl;
1392  }
1393  ChannelGetLocalPtr channelGet =
1395  getPtrSelf(),
1396  channelGetRequester,
1397  pvRequest,
1398  pvr);
1399  return channelGet;
1400 }
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< ChannelGetLocal > ChannelGetLocalPtr
static ChannelGetLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelGetRequester::shared_pointer const &channelGetRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
ChannelProcess::shared_pointer epics::pvDatabase::ChannelLocal::createChannelProcess ( epics::pvAccess::ChannelProcessRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelProcess.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1360 of file channelLocal.cpp.

1363 {
1364  PVRecordPtr pvr(pvRecord.lock());
1365  if(!pvr) throw std::logic_error("pvRecord is deleted");
1366  if(pvr->getTraceLevel()>0) {
1367  cout << "ChannelLocal::createChannelProcess() "
1368  << " recordName " << pvr->getRecordName()
1369  << " requester exists " << (requester ? "true" : "false")
1370  << endl;
1371  }
1372  ChannelProcessLocalPtr channelProcess =
1374  getPtrSelf(),
1375  channelProcessRequester,
1376  pvRequest,
1377  pvr);
1378  return channelProcess;
1379 }
static ChannelProcessLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelProcessRequester::shared_pointer const &channelProcessRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< ChannelProcessLocal > ChannelProcessLocalPtr
ChannelPut::shared_pointer epics::pvDatabase::ChannelLocal::createChannelPut ( epics::pvAccess::ChannelPutRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelPut.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1402 of file channelLocal.cpp.

1405 {
1406  PVRecordPtr pvr(pvRecord.lock());
1407  if(!pvr) throw std::logic_error("pvRecord is deleted");
1408  if(pvr->getTraceLevel()>0) {
1409  cout << "ChannelLocal::createChannelPut() "
1410  << " recordName " << pvr->getRecordName()
1411  << " requester exists " << (requester ? "true" : "false")
1412  << endl;
1413  }
1414 
1415  ChannelPutLocalPtr channelPut =
1417  getPtrSelf(),
1418  channelPutRequester,
1419  pvRequest,
1420  pvr);
1421  return channelPut;
1422 }
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< ChannelPutLocal > ChannelPutLocalPtr
static ChannelPutLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelPutRequester::shared_pointer const &channelPutRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
ChannelPutGet::shared_pointer epics::pvDatabase::ChannelLocal::createChannelPutGet ( epics::pvAccess::ChannelPutGetRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelPutGet.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1424 of file channelLocal.cpp.

1427 {
1428  PVRecordPtr pvr(pvRecord.lock());
1429  if(!pvr) throw std::logic_error("pvRecord is deleted");
1430  if(pvr->getTraceLevel()>0) {
1431  cout << "ChannelLocal::createChannelPutGet() "
1432  << " recordName " << pvr->getRecordName()
1433  << " requester exists " << (requester ? "true" : "false")
1434  << endl;
1435  }
1436 
1437  ChannelPutGetLocalPtr channelPutGet =
1439  getPtrSelf(),
1440  channelPutGetRequester,
1441  pvRequest,
1442  pvr);
1443  return channelPutGet;
1444 }
static ChannelPutGetLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelPutGetRequester::shared_pointer const &channelPutGetRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
std::tr1::shared_ptr< ChannelPutGetLocal > ChannelPutGetLocalPtr
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
ChannelRPC::shared_pointer epics::pvDatabase::ChannelLocal::createChannelRPC ( epics::pvAccess::ChannelRPCRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a channelRPC.

The PVRecord must implement getService or an empty shared pointer is returned.

Parameters
requesterThe client callback
pvRequestThe options specified by the client.
Returns
null.

Definition at line 1446 of file channelLocal.cpp.

1449 {
1450  PVRecordPtr pvr(pvRecord.lock());
1451  if(!pvr) throw std::logic_error("pvRecord is deleted");
1452  if(pvr->getTraceLevel()>0) {
1453  cout << "ChannelLocal::createChannelRPC() "
1454  << " recordName " << pvr->getRecordName()
1455  << " requester exists " << (requester ? "true" : "false")
1456  << endl;
1457  }
1458 
1459  ChannelRPCLocalPtr channelRPC =
1461  getPtrSelf(),
1462  channelRPCRequester,
1463  pvRequest,
1464  pvr);
1465  return channelRPC;
1466 }
std::tr1::shared_ptr< ChannelRPCLocal > ChannelRPCLocalPtr
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
static ChannelRPCLocalPtr create(ChannelLocalPtr const &channelLocal, ChannelRPCRequester::shared_pointer const &channelRPCRequester, PVStructurePtr const &pvRequest, PVRecordPtr const &pvRecord)
Monitor::shared_pointer epics::pvDatabase::ChannelLocal::createMonitor ( epics::pvData::MonitorRequester::shared_pointer const &  requester,
epics::pvData::PVStructurePtr const &  pvRequest 
)
virtual

Create a monitor.

Parameters
requesterThe client callback.
pvRequestThe options specified by the client.
Returns
A shared pointer to the newly created implementation. The implementation is null if pvRequest has invalid options.

Definition at line 1468 of file channelLocal.cpp.

1471 {
1472  PVRecordPtr pvr(pvRecord.lock());
1473  if(!pvr) throw std::logic_error("pvRecord is deleted");
1474  if(pvr->getTraceLevel()>0) {
1475  cout << "ChannelLocal::createMonitor() "
1476  << " recordName " << pvr->getRecordName()
1477  << " requester exists " << (requester ? "true" : "false")
1478  << endl;
1479  }
1480 
1481  MonitorPtr monitor = createMonitorLocal(
1482  pvr,
1483  monitorRequester,
1484  pvRequest);
1485  return monitor;
1486 }
epicsShareFunc epics::pvData::MonitorPtr createMonitorLocal(PVRecordPtr const &pvRecord, epics::pvData::MonitorRequester::shared_pointer const &monitorRequester, epics::pvData::PVStructurePtr const &pvRequest)
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< Monitor > MonitorPtr
Definition: monitor.h:44
virtual void epics::pvDatabase::ChannelLocal::destroy ( )
inlinevirtual

DEPRECATED.

Implements epics::pvAccess::Destroyable.

Definition at line 197 of file channelProviderLocal.h.

197 {};
void epics::pvDatabase::ChannelLocal::detach ( PVRecordPtr const &  pvRecord)
virtual

Detach from the record.

This is called when a record is being removed from the database.

Parameters
pvRecordThe record being removed.

Implements epics::pvDatabase::PVRecordClient.

Definition at line 1254 of file channelLocal.cpp.

1255 {
1256  if(pvRecord->getTraceLevel()>0) {
1257  cout << "ChannelLocal::detach() "
1258  << " recordName " << pvRecord->getRecordName()
1259  << " requester exists " << (requester ? "true" : "false")
1260  << endl;
1261  }
1262  if(!requester) return;
1263  requester->channelStateChange(shared_from_this(),Channel::DESTROYED);
1264 }
AccessRights epics::pvDatabase::ChannelLocal::getAccessRights ( epics::pvData::PVField::shared_pointer const &  pvField)
virtual

Get the access rights for the record. This throws an exception because it is assumed that access rights are handled by a higher level.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1354 of file channelLocal.cpp.

1356 {
1357  throw std::logic_error("Not Implemented");
1358 }
string epics::pvDatabase::ChannelLocal::getChannelName ( )
virtual

Get the channel name.

Returns
the record name.

Implements epics::pvAccess::Channel.

Definition at line 1314 of file channelLocal.cpp.

1315 {
1316  PVRecordPtr pvr(pvRecord.lock());
1317  string name("record deleted");
1318  if(pvr) name = pvr->getRecordName();
1319  return name;
1320 }
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
ChannelRequester::shared_pointer epics::pvDatabase::ChannelLocal::getChannelRequester ( )
virtual

Get the channel requester.

Returns
The channel requester.

Implements epics::pvAccess::Channel.

Definition at line 1322 of file channelLocal.cpp.

1323 {
1324  return requester;
1325 }
Channel::ConnectionState epics::pvDatabase::ChannelLocal::getConnectionState ( )
virtual

Get the connection state.

Returns
Channel::CONNECTED.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1309 of file channelLocal.cpp.

1310 {
1311  return Channel::CONNECTED;
1312 }
void epics::pvDatabase::ChannelLocal::getField ( epics::pvAccess::GetFieldRequester::shared_pointer const &  requester,
std::string const &  subField 
)
virtual

Get the introspection interface for subField.

The introspection interface is given via GetFieldRequester::getDone.

Parameters
requesterThe client callback.
subFieldThe subField of the record. If an empty string then the interface for the top level structure of the record is provided.

Definition at line 1332 of file channelLocal.cpp.

1334 {
1335  PVRecordPtr pvr(pvRecord.lock());
1336  if(!pvr) throw std::logic_error("pvRecord is deleted");
1337  if(subField.size()<1) {
1339  pvr->getPVRecordStructure()->getPVStructure()->getStructure();
1340  requester->getDone(Status::Ok,structure);
1341  return;
1342  }
1343  PVFieldPtr pvField =
1344  pvr->getPVRecordStructure()->getPVStructure()->getSubField(subField);
1345  if(pvField) {
1346  requester->getDone(Status::Ok,pvField->getField());
1347  return;
1348  }
1349  Status status(Status::STATUSTYPE_ERROR,
1350  "client asked for illegal field");
1351  requester->getDone(status,FieldConstPtr());
1352 }
pvd::Status status
std::tr1::shared_ptr< const Structure > StructureConstPtr
Definition: pvIntrospect.h:162
std::tr1::shared_ptr< const Field > FieldConstPtr
Definition: pvIntrospect.h:137
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
std::tr1::shared_ptr< PVField > PVFieldPtr
Definition: pvData.h:66
ChannelProvider::shared_pointer epics::pvDatabase::ChannelLocal::getProvider ( )
virtual

Get the channel provider.

Returns
The provider.

Implements epics::pvAccess::Channel.

Definition at line 1249 of file channelLocal.cpp.

1250 {
1251  return provider.lock();
1252 }
shared_pointer epics::pvDatabase::ChannelLocal::getPtrSelf ( )
inlineprotected

Definition at line 355 of file channelProviderLocal.h.

356  {
357  return shared_from_this();
358  }
string epics::pvDatabase::ChannelLocal::getRemoteAddress ( )
virtual

Get the remote address.

Returns
local

Implements epics::pvAccess::Channel.

Definition at line 1304 of file channelLocal.cpp.

1305 {
1306  return string("local");
1307 }
string epics::pvDatabase::ChannelLocal::getRequesterName ( )
virtual

Get the requester name.

Returns
returns the name of the channel requester.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1267 of file channelLocal.cpp.

1268 {
1269  PVRecordPtr pvr(pvRecord.lock());
1270  if(pvr && pvr->getTraceLevel()>0) {
1271  cout << "ChannelLocal::getRequesterName() "
1272  << " recordName " << pvr->getRecordName()
1273  << " requester exists " << (requester ? "true" : "false")
1274  << endl;
1275  }
1276 
1277  if(!requester) return string();
1278  return requester->getRequesterName();
1279 }
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
bool epics::pvDatabase::ChannelLocal::isConnected ( )
virtual

Is the channel connected?

Returns
true.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1327 of file channelLocal.cpp.

1328 {
1329  return true;
1330 }
void epics::pvDatabase::ChannelLocal::message ( std::string const &  message,
epics::pvData::MessageType  messageType 
)
virtual

Passes the message to the channel requester.

Parameters
messageThe message.
messageTypeThe message type.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1281 of file channelLocal.cpp.

1284 {
1285  PVRecordPtr pvr(pvRecord.lock());
1286  if(pvr && pvr->getTraceLevel()>1) {
1287  cout << "ChannelLocal::message() "
1288  << " recordName " << pvr->getRecordName()
1289  << " requester exists " << (requester ? "true" : "false")
1290  << endl;
1291  }
1292  if(requester) {
1293  requester->message(message,messageType);
1294  return;
1295  }
1296  string recordName("record deleted");
1297  if(pvr) recordName = pvr->getRecordName();
1298  cout << recordName
1299  << " message " << message
1300  << " messageType " << getMessageTypeName(messageType)
1301  << endl;
1302 }
epicsShareExtern std::string getMessageTypeName(MessageType messageType)
Definition: requester.cpp:25
std::tr1::shared_ptr< PVRecord > PVRecordPtr
Definition: pvDatabase.h:21
virtual void message(std::string const &message, epics::pvData::MessageType messageType)
Passes the message to the channel requester.
epics::pvDatabase::ChannelLocal::POINTER_DEFINITIONS ( ChannelLocal  )
void epics::pvDatabase::ChannelLocal::printInfo ( )
virtual

calls printInfo(std::cout);

Reimplemented from epics::pvAccess::Channel.

Definition at line 1509 of file channelLocal.cpp.

1510 {
1511  printInfo(std::cout);
1512 }
virtual void printInfo()
calls printInfo(std::cout);
void epics::pvDatabase::ChannelLocal::printInfo ( std::ostream &  out)
virtual

displays a message

Parameters
outthe stream on which the message is displayed.

Reimplemented from epics::pvAccess::Channel.

Definition at line 1514 of file channelLocal.cpp.

1515 {
1516  out << "ChannelLocal provides access to a record in the local PVDatabase";
1517 }

The documentation for this class was generated from the following files: