pva2pva 1.4.2
Loading...
Searching...
No Matches
BaseChannel Struct Reference
Inheritance diagram for BaseChannel:
Collaboration diagram for BaseChannel:

Public Types

typedef epicsGuard< epicsMutex > guard_t

Public Member Functions

 BaseChannel (const std::string &name, const std::tr1::weak_ptr< epics::pvAccess::ChannelProvider > &prov, const epics::pvAccess::ChannelRequester::shared_pointer &req, const epics::pvData::StructureConstPtr &dtype)
virtual std::string getRequesterName () OVERRIDE
virtual void destroy () OVERRIDE FINAL
virtual std::tr1::shared_ptr< epics::pvAccess::ChannelProvider > getProvider () OVERRIDE FINAL
virtual std::string getRemoteAddress () OVERRIDE
virtual std::string getChannelName () OVERRIDE FINAL
virtual std::tr1::shared_ptr< epics::pvAccess::ChannelRequester > getChannelRequester () OVERRIDE FINAL
virtual void getField (epics::pvAccess::GetFieldRequester::shared_pointer const &requester, std::string const &subField) OVERRIDE
virtual void printInfo (std::ostream &out) OVERRIDE

Public Attributes

epicsMutex lock
const std::string pvname
const epics::pvAccess::ChannelProvider::weak_pointer provider
const requester_type::weak_pointer requester
const epics::pvData::StructureConstPtr fielddesc

Detailed Description

Definition at line 19 of file pvahelper.h.

Member Typedef Documentation

◆ guard_t

typedef epicsGuard<epicsMutex> BaseChannel::guard_t

Definition at line 31 of file pvahelper.h.

Constructor & Destructor Documentation

◆ BaseChannel()

BaseChannel::BaseChannel ( const std::string & name,
const std::tr1::weak_ptr< epics::pvAccess::ChannelProvider > & prov,
const epics::pvAccess::ChannelRequester::shared_pointer & req,
const epics::pvData::StructureConstPtr & dtype )
inline

Definition at line 21 of file pvahelper.h.

26 :pvname(name), provider(prov), requester(req), fielddesc(dtype)
27 {}

◆ ~BaseChannel()

virtual BaseChannel::~BaseChannel ( )
inlinevirtual

Definition at line 28 of file pvahelper.h.

28{}

Member Function Documentation

◆ destroy()

virtual void BaseChannel::destroy ( )
inlinevirtual

Definition at line 42 of file pvahelper.h.

42{}

◆ getChannelName()

virtual std::string BaseChannel::getChannelName ( )
inlinevirtual

Definition at line 49 of file pvahelper.h.

49{ return pvname; }

◆ getChannelRequester()

virtual std::tr1::shared_ptr< epics::pvAccess::ChannelRequester > BaseChannel::getChannelRequester ( )
inlinevirtual

Definition at line 50 of file pvahelper.h.

51 { return requester_type::shared_pointer(requester); }

◆ getField()

virtual void BaseChannel::getField ( epics::pvAccess::GetFieldRequester::shared_pointer const & requester,
std::string const & subField )
inlinevirtual

Definition at line 53 of file pvahelper.h.

54 { requester->getDone(epics::pvData::Status(), fielddesc); }

◆ getProvider()

virtual std::tr1::shared_ptr< epics::pvAccess::ChannelProvider > BaseChannel::getProvider ( )
inlinevirtual

Definition at line 44 of file pvahelper.h.

45 { return epics::pvAccess::ChannelProvider::shared_pointer(provider); }

◆ getRemoteAddress()

virtual std::string BaseChannel::getRemoteAddress ( )
inlinevirtual

Definition at line 46 of file pvahelper.h.

47 { return getRequesterName(); }

◆ getRequesterName()

virtual std::string BaseChannel::getRequesterName ( )
inlinevirtual

Definition at line 39 of file pvahelper.h.

40 { return getChannelRequester()->getRequesterName(); }

◆ printInfo()

virtual void BaseChannel::printInfo ( std::ostream & out)
inlinevirtual

Definition at line 56 of file pvahelper.h.

56 {
57 out<<"Channel '"<<pvname<<"' "<<getRemoteAddress()<<"\n";
58 }

Member Data Documentation

◆ fielddesc

const epics::pvData::StructureConstPtr BaseChannel::fielddesc

Definition at line 36 of file pvahelper.h.

◆ lock

epicsMutex BaseChannel::lock
mutable

Definition at line 30 of file pvahelper.h.

◆ provider

const epics::pvAccess::ChannelProvider::weak_pointer BaseChannel::provider

Definition at line 34 of file pvahelper.h.

◆ pvname

const std::string BaseChannel::pvname

Definition at line 33 of file pvahelper.h.

◆ requester

const requester_type::weak_pointer BaseChannel::requester

Definition at line 35 of file pvahelper.h.


The documentation for this struct was generated from the following file: