X2 Standard  Version 1.24
multiconnectiondeviceinterface.h
1 #ifndef _MultiConnectionDeviceInterface_H
2 #define _MultiConnectionDeviceInterface_H
3 
4 #define MultiConnectionDeviceInterface_Name "com.bisque.TheSkyX.MultiConnectionDeviceInterface/1.0"
5 
7 
8 
57 {
58 protected:
59  int m_nInstanceCount;
60 
61 public:
65  {
66  m_nInstanceCount = 1;
67  }
68 
81  virtual int deviceIdentifier(BasicStringInterface &sIdentifier) = 0;
82 
83 
91  virtual int setInstanceCount(const int &nInstanceCount)
92  {
93  m_nInstanceCount = nInstanceCount;
94  return 0;
95  }
96 
107  virtual int isConnectionPossible(const int &nPeerArraySize, MultiConnectionDeviceInterface **ppPeerArray, bool &bConnectionPossible) = 0;
108 
117 
126 };
127 
128 #endif
MultiConnectionDeviceInterface::useResource
virtual int useResource(MultiConnectionDeviceInterface *pPeer)=0
MultiConnectionDeviceInterface::isConnectionPossible
virtual int isConnectionPossible(const int &nPeerArraySize, MultiConnectionDeviceInterface **ppPeerArray, bool &bConnectionPossible)=0
MultiConnectionDeviceInterface::deviceIdentifier
virtual int deviceIdentifier(BasicStringInterface &sIdentifier)=0
MultiConnectionDeviceInterface::setInstanceCount
virtual int setInstanceCount(const int &nInstanceCount)
Definition: multiconnectiondeviceinterface.h:91
MultiConnectionDeviceInterface
This optional interface, MultiConnectionDeviceInterface, provides X2 implementors a way to make x2 dr...
Definition: multiconnectiondeviceinterface.h:57
MultiConnectionDeviceInterface::swapResource
virtual int swapResource(MultiConnectionDeviceInterface *pPeer)=0
MultiConnectionDeviceInterface::MultiConnectionDeviceInterface
MultiConnectionDeviceInterface()
Definition: multiconnectiondeviceinterface.h:64
BasicStringInterface
The BasicStringInterface allows a string as an output.
Definition: basicstringinterface.h:17
X2 Examples
(C) Software Bisque, Inc. All rights reserved.