2011-11-08 16:37:25 +00:00
|
|
|
/**
|
|
|
|
* @file class_cvpcb.cpp
|
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <fctsys.h>
|
|
|
|
#include <kicad_string.h>
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <cvpcb.h>
|
|
|
|
#include <footprint_info.h>
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-05-06 11:55:36 +00:00
|
|
|
bool operator<( const PIN& item1, const PIN& item2 )
|
|
|
|
{
|
2011-11-08 16:37:25 +00:00
|
|
|
return StrNumCmp( item1.m_Number, item2.m_Number, 4, true ) < 0;
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2011-11-08 16:37:25 +00:00
|
|
|
|
2009-05-06 11:55:36 +00:00
|
|
|
bool operator<( const COMPONENT& item1, const COMPONENT& item2 )
|
2009-04-23 15:02:18 +00:00
|
|
|
{
|
2011-11-08 16:37:25 +00:00
|
|
|
return StrNumCmp( item1.m_Reference, item2.m_Reference, INT_MAX, true ) < 0;
|
2009-04-23 15:02:18 +00:00
|
|
|
}
|