Files
epics-base/src/ca/cacNotifyIO.cpp
2000-11-08 03:52:18 +00:00

33 lines
598 B
C++

/* $Id$
*
* L O S A L A M O S
* Los Alamos National Laboratory
* Los Alamos, New Mexico 87545
*
* Copyright, 1986, The Regents of the University of California.
*
* Author: Jeff Hill
*/
#include "iocinf.h"
cacNotifyIO::cacNotifyIO ( cacNotify &notifyIn ) : notify ( notifyIn )
{
assert ( ! this->notify.pIO );
this->notify.pIO = this;
}
cacNotifyIO::~cacNotifyIO ()
{
if ( this->notify.pIO == this ) {
this->notify.pIO = 0;
this->notify.destroy ();
}
}
void cacNotifyIO::destroy ()
{
delete this;
}