fixed casChannelI undefined symbols on WIN32

This commit is contained in:
Jeff Hill
1998-11-18 18:52:49 +00:00
parent 2ab3555c08
commit 7debd1da9d
4 changed files with 56 additions and 23 deletions

View File

@@ -5,3 +5,28 @@
#include "exServer.h"
//
// exChannel::setOwner ()
//
void exChannel::setOwner(const char * const pUserName,
const char * const pHostName)
{
}
//
// exChannel::readAccess ()
//
aitBool exChannel::readAccess () const
{
return aitTrue;
}
//
// exChannel::writeAccess ()
//
aitBool exChannel::writeAccess () const
{
return aitTrue;
}

View File

@@ -428,3 +428,15 @@ caStatus exPV::read (const casCtx &, gdd &protoIn)
return this->ft.read (*this, protoIn);
}
//
// exPV::createChannel()
//
// for access control - optional
//
casChannel *exPV::createChannel (const casCtx &ctx,
const char * const pUserName, const char * const pHostName)
{
return new exChannel (ctx);
}

View File

@@ -14,6 +14,9 @@
// |
// exAsyncPV
//
// casChannel
// |
// exChannel
//
@@ -236,6 +239,12 @@ public:
static void initFT();
//
// for access control - optional
//
casChannel *createChannel (const casCtx &ctx,
const char * const pUserName, const char * const pHostName);
protected:
smartGDDPointer pValue;
exScanTimer *pScanTimer;
@@ -385,29 +394,13 @@ private:
//
class exChannel : public casChannel{
public:
exChannel(const casCtx &ctxIn) : casChannel(ctxIn) {}
exChannel(const casCtx &ctxIn) : casChannel(ctxIn) {}
//void setOwner(const char *pUserName, const char *pHostName){};
virtual void setOwner(const char * const pUserName,
const char * const pHostName);
//
// called when the first client begins to monitor the PV
//
caStatus interestRegister ()
{
return S_cas_success;
}
//
// called when the last client stops monitoring the PV
//
void interestDelete () {}
//
// the following are encouraged to change during an channel's
// lifetime
//
aitBool readAccess () const {return aitTrue;};
aitBool writeAccess () const {return aitTrue;};
virtual aitBool readAccess () const;
virtual aitBool writeAccess () const;
private:
};

View File

@@ -29,6 +29,9 @@
*
* History
* $Log$
* Revision 1.17 1998/10/23 00:28:20 jhill
* fixed HP-UX warnings
*
* Revision 1.16 1998/07/08 15:38:05 jhill
* fixed lost monitors during flow control problem
*
@@ -472,7 +475,7 @@ public:
inline void postEvent (const casEventMask &select, gdd &event);
virtual casResType resourceType() const;
epicsShareFunc virtual casResType resourceType() const;
virtual void show (unsigned level) const;
@@ -490,7 +493,7 @@ public:
//
// access rights event call back
//
caStatus cbFunc(casEventSys &);
epicsShareFunc caStatus cbFunc(casEventSys &);
inline void postAccessRightsEvent();
protected: