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
372 B

  1. #include "Connector.h"
  2. CConnector::CConnector()
  3. {
  4. mPinCount = 0;
  5. }
  6. int CConnector::GetPinCount()
  7. {
  8. return mPinCount;
  9. }
  10. int CConnector::SetConnectorType(CConnectorDefs::eConnectorType type)
  11. {
  12. mPinCount = CConnectorDefs::GetPinCount(type);
  13. }
  14. bool CConnector::IsConnectorDefined()
  15. {
  16. if(mPinCount == 0)
  17. {
  18. return false;
  19. }
  20. return true;
  21. }