diff --git a/src/ca/netReadCopyIO.cpp b/src/ca/netReadCopyIO.cpp deleted file mode 100644 index 02ccbc922..000000000 --- a/src/ca/netReadCopyIO.cpp +++ /dev/null @@ -1,85 +0,0 @@ - -/* $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" -#include "netReadCopyIO_IL.h" -#include "nciu_IL.h" -#include "baseNMIU_IL.h" - -tsFreeList < class netReadCopyIO, 1024 > netReadCopyIO::freeList; - -netReadCopyIO::netReadCopyIO ( nciu &chanIn, unsigned typeIn, unsigned long countIn, - void *pValueIn, unsigned seqNumberIn ) : - baseNMIU ( chanIn ), type ( typeIn ), count ( countIn ), - pValue ( pValueIn ), seqNumber ( seqNumberIn ) -{ - this->chan.incrementOutstandingIO ( seqNumberIn ); -} - -netReadCopyIO::~netReadCopyIO () -{ -} - -void netReadCopyIO::completionNotify () -{ - this->exceptionNotify ( ECA_INTERNAL, "get completion callback with no data?" ); -} - -void netReadCopyIO::completionNotify ( unsigned typeIn, - unsigned long countIn, const void *pDataIn ) -{ - if ( typeIn <= (unsigned) LAST_BUFFER_TYPE ) { -# ifdef CONVERSION_REQUIRED - (*cac_dbr_cvrt[type]) ( pDataIn, this->pValue, - FALSE, countIn ); -# else - memcpy ( this->pValue, pDataIn, - dbr_size_n ( typeIn, countIn ) ); -# endif - this->chan.decrementOutstandingIO ( this->seqNumber ); - } - else { - this->exceptionNotify ( ECA_INTERNAL, "bad data type in message" ); - } -} - -void netReadCopyIO::exceptionNotify ( int status, const char *pContext ) -{ - ca_signal_formated ( status, __FILE__, __LINE__, - "%s chan=%s\n", pContext, this->channelIO ().pName () ); - -} - -void netReadCopyIO::exceptionNotify ( int status, - const char *pContextIn, unsigned typeIn, unsigned long countIn ) -{ - ca_signal_formated ( status, __FILE__, __LINE__, - "%s chan=%s type=%d count=%ld\n", pContextIn, - this->channelIO ().pName (), typeIn, countIn); -} - -cacChannelIO & netReadCopyIO::channelIO () const -{ - return this->channel (); -} - -void netReadCopyIO::show ( unsigned level ) const -{ - int tmpType = static_cast ( this->type ); - printf ( "read copy IO at %p, type %s, element count %lu\n", - static_cast ( this ), dbf_type_to_text ( tmpType ), this->count ); - if ( level > 0u ) { - printf ( "\tsequence number %u, user's storage %p\n", - this->seqNumber, this->pValue ); - this->baseNMIU::show ( level - 1u ); - } -} diff --git a/src/ca/netReadCopyIO_IL.h b/src/ca/netReadCopyIO_IL.h deleted file mode 100644 index 5d3a4d03f..000000000 --- a/src/ca/netReadCopyIO_IL.h +++ /dev/null @@ -1,31 +0,0 @@ - -/* - * $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 - */ - -#ifndef netReadCopyIO_ILh -#define netReadCopyIO_ILh - -inline void * netReadCopyIO::operator new ( size_t size ) -{ - return netReadCopyIO::freeList.allocate ( size ); -} - -inline void netReadCopyIO::operator delete ( void *pCadaver, size_t size ) -{ - netReadCopyIO::freeList.release ( pCadaver, size ); -} - -#endif // netReadCopyIO_ILh diff --git a/src/ca/oldChannel.cpp b/src/ca/oldChannel.cpp deleted file mode 100644 index 32de039d0..000000000 --- a/src/ca/oldChannel.cpp +++ /dev/null @@ -1,2 +0,0 @@ - -#error defunct \ No newline at end of file