This is Unofficial EPICS BASE Doxygen Site
pvac::Operation Struct Reference

Handle for in-progress get/put/rpc operation. More...

#include "client.h"

Classes

struct  Impl
 

Public Member Functions

 Operation ()
 
 Operation (const std::tr1::shared_ptr< Impl > &)
 
 ~Operation ()
 
std::string name () const
 Channel name. More...
 
void cancel ()
 
bool valid () const
 
 operator bool_type () const
 
void reset ()
 

Protected Attributes

std::tr1::shared_ptr< Implimpl
 

Friends

epicsShareFunc::std::ostream & operator<< (::std::ostream &strm, const Operation &op)
 

Detailed Description

Handle for in-progress get/put/rpc operation.

Definition at line 50 of file client.h.

Constructor & Destructor Documentation

pvac::Operation::Operation ( )
inline

Definition at line 60 of file client.h.

60 {}
pvac::Operation::Operation ( const std::tr1::shared_ptr< Impl > &  i)

Definition at line 125 of file client.cpp.

126  :impl(i)
127 {}
int i
Definition: scan.c:967
std::tr1::shared_ptr< Impl > impl
Definition: client.h:84
pvac::Operation::~Operation ( )

Definition at line 129 of file client.cpp.

129 {}

Member Function Documentation

void pvac::Operation::cancel ( )

Immediate cancellation. Does not wait for remote confirmation.

Definition at line 136 of file client.cpp.

137 {
138  if(impl) impl->cancel();
139 }
std::tr1::shared_ptr< Impl > impl
Definition: client.h:84
std::string pvac::Operation::name ( ) const

Channel name.

Definition at line 131 of file client.cpp.

132 {
133  return impl ? impl->name() : "<NULL>";
134 }
std::tr1::shared_ptr< Impl > impl
Definition: client.h:84
pvac::Operation::operator bool_type ( ) const
inline

Definition at line 77 of file client.h.

77 { return valid() ? &Operation::valid : 0; }
bool valid() const
Definition: client.h:69
void pvac::Operation::reset ( )
inline

Definition at line 80 of file client.h.

80 { impl.reset(); }
std::tr1::shared_ptr< Impl > impl
Definition: client.h:84
bool pvac::Operation::valid ( void  ) const
inline

Definition at line 69 of file client.h.

69 { return !!impl; }
std::tr1::shared_ptr< Impl > impl
Definition: client.h:84

Friends And Related Function Documentation

epicsShareFunc ::std::ostream& operator<< ( ::std::ostream &  strm,
const Operation op 
)
friend

Definition at line 336 of file client.cpp.

337 {
338  if(op.impl) {
339  op.impl->show(strm);
340  } else {
341  strm << "Operation()";
342  }
343  return strm;
344 }
ChannelPut::shared_pointer op
Definition: pvAccess.cpp:132

Member Data Documentation

std::tr1::shared_ptr<Impl> pvac::Operation::impl
protected

Definition at line 84 of file client.h.


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