pva2pva 1.4.2
Loading...
Searching...
No Matches
BaseChannelProviderFactory< CP > Struct Template Reference
Inheritance diagram for BaseChannelProviderFactory< CP >:
Collaboration diagram for BaseChannelProviderFactory< CP >:

Public Types

typedef CP provider_type

Public Member Functions

 BaseChannelProviderFactory (const char *name)
virtual std::string getFactoryName ()
virtual epics::pvAccess::ChannelProvider::shared_pointer sharedInstance ()
virtual epics::pvAccess::ChannelProvider::shared_pointer newInstance (const std::tr1::shared_ptr< epics::pvAccess::Configuration > &)

Public Attributes

std::string name
epicsMutex lock
std::tr1::weak_ptr< CP > last_shared

Detailed Description

template<class CP>
struct BaseChannelProviderFactory< CP >

Definition at line 351 of file pvahelper.h.

Member Typedef Documentation

◆ provider_type

template<class CP>
typedef CP BaseChannelProviderFactory< CP >::provider_type

Definition at line 353 of file pvahelper.h.

Constructor & Destructor Documentation

◆ BaseChannelProviderFactory()

template<class CP>
BaseChannelProviderFactory< CP >::BaseChannelProviderFactory ( const char * name)
inline

Definition at line 358 of file pvahelper.h.

358:name(name) {}

◆ ~BaseChannelProviderFactory()

template<class CP>
virtual BaseChannelProviderFactory< CP >::~BaseChannelProviderFactory ( )
inlinevirtual

Definition at line 359 of file pvahelper.h.

359{}

Member Function Documentation

◆ getFactoryName()

template<class CP>
virtual std::string BaseChannelProviderFactory< CP >::getFactoryName ( )
inlinevirtual

Definition at line 361 of file pvahelper.h.

361{ return name; }

◆ newInstance()

template<class CP>
virtual epics::pvAccess::ChannelProvider::shared_pointer BaseChannelProviderFactory< CP >::newInstance ( const std::tr1::shared_ptr< epics::pvAccess::Configuration > & )
inlinevirtual

Definition at line 374 of file pvahelper.h.

375 {
377 return ret;
378 }

◆ sharedInstance()

template<class CP>
virtual epics::pvAccess::ChannelProvider::shared_pointer BaseChannelProviderFactory< CP >::sharedInstance ( )
inlinevirtual

Definition at line 363 of file pvahelper.h.

364 {
366 std::tr1::shared_ptr<CP> ret(last_shared.lock());
367 if(!ret) {
368 ret.reset(new CP());
369 last_shared = ret;
370 }
371 return ret;
372 }

Member Data Documentation

◆ last_shared

template<class CP>
std::tr1::weak_ptr<CP> BaseChannelProviderFactory< CP >::last_shared

Definition at line 356 of file pvahelper.h.

◆ lock

template<class CP>
epicsMutex BaseChannelProviderFactory< CP >::lock

Definition at line 355 of file pvahelper.h.

◆ name

template<class CP>
std::string BaseChannelProviderFactory< CP >::name

Definition at line 354 of file pvahelper.h.


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