27 lines
372 B
C++
27 lines
372 B
C++
#include "Connector.h"
|
|
|
|
CConnector::CConnector()
|
|
{
|
|
mPinCount = 0;
|
|
}
|
|
|
|
int CConnector::GetPinCount()
|
|
{
|
|
return mPinCount;
|
|
}
|
|
|
|
int CConnector::SetConnectorType(CConnectorDefs::eConnectorType type)
|
|
{
|
|
mPinCount = CConnectorDefs::GetPinCount(type);
|
|
}
|
|
|
|
bool CConnector::IsConnectorDefined()
|
|
{
|
|
if(mPinCount == 0)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|