Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
553 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "stdafx.h"
  2. #include "LgPersistPin.h"
  3. CLgPersistPin::~CLgPersistPin()
  4. {
  5. PinToPinLinkP::Unlink();
  6. }
  7. BOOL CLgPersistPin::IsConnectable( CLgPersistPin *pPin )
  8. {
  9. if( !IsConnectable() || !pPin->IsConnectable() )
  10. return FALSE;
  11. if( GetTypeConnectable() == pPin->GetType() &&
  12. GetType() == pPin->GetTypeConnectable() )
  13. return TRUE;
  14. return FALSE;
  15. }
  16. BOOL CLgPersistPin::Connect( CLgPersistPin *pPin )
  17. {
  18. if( !IsConnectable( pPin ) )
  19. return FALSE;
  20. return CLgLinkP<CLgPersistPin,CLgPersistPin>::Link( pPin );
  21. }