File indexing completed on 2024-04-28 13:39:25

0001 /***************************************************************************
0002  *   Copyright (C) 2003-2004 by David Saxton                               *
0003  *   david@bluehaze.org                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #include "microinfo.h"
0012 #include "micropackage.h"
0013 
0014 MicroInfo::MicroInfo()
0015 {
0016     m_package = nullptr;
0017 }
0018 
0019 MicroInfo::~MicroInfo()
0020 {
0021     delete m_package;
0022 }
0023 
0024 #if 0
0025 QStringList MicroInfo::portNames()
0026 {
0027     if (m_package) return m_package->portNames();
0028     else return "";
0029 }
0030 
0031 QStringList MicroInfo::pinIDs()
0032 {
0033     if (m_package) return m_package->pinIDs();
0034     else return "";
0035 }
0036 
0037 QStringList MicroInfo::bidirPinIDs()
0038 {
0039     if (m_package) return m_package->bidirPinIDs();
0040     else return "";
0041 }
0042 
0043 int MicroInfo::totalNumPins()
0044 {
0045     if (m_package) return m_package->totalNumPins();
0046     else return 0;
0047 }
0048 
0049 int MicroInfo::numIOPins()
0050 {
0051     if (m_package) return m_package->numIOPins();
0052     else return 0;
0053 }
0054 
0055 int MicroInfo::numIOPins( const QString &portName )
0056 {
0057     if (m_package) return m_package->numIOPins(portName);
0058     else return 0;
0059 }
0060 #endif