major revisions

This commit is contained in:
Jeff Hill
2000-04-28 01:29:00 +00:00
parent 68c049fa73
commit 547f1b15fa
56 changed files with 8019 additions and 7241 deletions

55
src/ca/cacServiceList.cpp Normal file
View File

@@ -0,0 +1,55 @@
/*
* $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 Jeffrey O. Hill
* johill@lanl.gov
* 505 665 1831
*/
#include "iocinf.h"
epicsShareDef cacServiceList cacGlobalServiceList;
cacServiceList::cacServiceList ()
{
}
void cacServiceList::registerService ( cacServiceIO &service )
{
this->lock ();
this->services.add ( service );
this->unlock ();
}
bool cacServiceList::createChannel (const char *pName, cacChannel &chan)
{
cacChannelIO *pChanIO = 0;
this->lock ();
tsDLIterBD <cacServiceIO> iter ( this->services.first () );
while ( iter != iter.eol () ) {
pChanIO = iter->createChannelIO ( chan, pName );
if ( pChanIO ) {
break;
}
iter++;
}
this->unlock ();
if ( pChanIO ) {
return true;
}
else {
return false;
}
}