#define __pvConnection_cc 1 #include "pvConnection.h" pvConnectionClass::pvConnectionClass ( void ) { maxPvs = 0; numPvs = 0; id = NULL; bit = NULL; connectionMask.reset(); numConnectionsExpected = 0; } pvConnectionClass::~pvConnectionClass ( void ) { if ( id ) delete[] id; if ( bit ) delete[] bit; } int pvConnectionClass::findPv ( void *Pv ) { int i; for ( i=0; i 1000 ) return 0; // error if ( maxPvs ) return 0; // error maxPvs = _maxPvs; id = new void *[maxPvs]; bit = new short[maxPvs]; for ( i=0; i= maxPvs ) return 0; //error connectionMask.set( bit[numConnectionsExpected] ); numConnectionsExpected++; return 1; } int pvConnectionClass::pvsConnected ( void ) { if ( connectionMask.none() ) { return 1; } return 0; }