This is Unofficial EPICS BASE Doxygen Site
epics::pvCopy::PVTimestampPlugin Class Reference

A plugin for a filter that sets a timeStamp to the current time. More...

#include "pvTimestampPlugin.h"

+ Inheritance diagram for epics::pvCopy::PVTimestampPlugin:
+ Collaboration diagram for epics::pvCopy::PVTimestampPlugin:

Public Member Functions

 POINTER_DEFINITIONS (PVTimestampPlugin)
 
virtual ~PVTimestampPlugin ()
 
virtual PVFilterPtr create (const std::string &requestValue, const PVCopyPtr &pvCopy, const epics::pvData::PVFieldPtr &master)
 
- Public Member Functions inherited from epics::pvCopy::PVPlugin
 POINTER_DEFINITIONS (PVPlugin)
 
virtual ~PVPlugin ()
 

Static Public Member Functions

static void create ()
 

Detailed Description

A plugin for a filter that sets a timeStamp to the current time.

Author
mrk
Since
date 2017.03.24

Definition at line 33 of file pvTimestampPlugin.h.

Constructor & Destructor Documentation

epics::pvCopy::PVTimestampPlugin::~PVTimestampPlugin ( )
virtual

Definition at line 35 of file pvTimestampPlugin.cpp.

36 {
37 }

Member Function Documentation

void epics::pvCopy::PVTimestampPlugin::create ( )
static

Factory

Definition at line 39 of file pvTimestampPlugin.cpp.

40 {
41  static bool firstTime = true;
42  if(firstTime) {
43  firstTime = false;
44  PVTimestampPluginPtr pvPlugin = PVTimestampPluginPtr(new PVTimestampPlugin());
45  PVPluginRegistry::registerPlugin(name,pvPlugin);
46  }
47 }
static void registerPlugin(const std::string &name, const PVPluginPtr &pvPlugin)
Definition: pvPlugin.cpp:24
std::tr1::shared_ptr< PVTimestampPlugin > PVTimestampPluginPtr
PVFilterPtr epics::pvCopy::PVTimestampPlugin::create ( const std::string &  requestValue,
const PVCopyPtr pvCopy,
const epics::pvData::PVFieldPtr master 
)
virtual

Create a PVFilter.

Parameters
requestValueThe value part of a name=value request option.
pvCopyThe PVCopy to which the PVFilter will be attached.
masterThe field in the master PVStructure to which the PVFilter will be attached
Returns
The PVFilter. Null is returned if master or requestValue is not appropriate for the plugin.

Implements epics::pvCopy::PVPlugin.

Definition at line 49 of file pvTimestampPlugin.cpp.

53 {
54  return PVTimestampFilter::create(requestValue,master);
55 }
static PVTimestampFilterPtr create(const std::string &requestValue, const epics::pvData::PVFieldPtr &master)
epics::pvCopy::PVTimestampPlugin::POINTER_DEFINITIONS ( PVTimestampPlugin  )

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