microinfo.h

00001 /***************************************************************************
00002  *   Copyright (C) 2003-2004 by David Saxton                               *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #ifndef MICROINFO_H
00012 #define MICROINFO_H
00013 
00014 #include <qstringlist.h>
00015 
00016 class AsmInfo;
00017 class MicroPackage;
00018 
00022 class MicroInfo
00023 {
00024 public:
00025         enum Support
00026         {
00027                 FullSupport     =               1 << 0,
00028                 PartialSupport =        1 << 1,
00029                 NoSupport =                     1 << 2
00030         };
00031         enum { AllSupport = FullSupport | PartialSupport | NoSupport };
00032         
00033         MicroInfo();
00034         virtual ~MicroInfo();
00035         
00036         virtual AsmInfo * instructionSet() = 0;
00040         virtual Support gpsimSupport() const { return NoSupport; }
00044         virtual Support flowcodeSupport() const { return NoSupport; }
00048         virtual Support microbeSupport() const { return NoSupport; }
00052         MicroPackage *package() const { return m_package; }
00056         QString id() const { return m_id; }
00057         
00058 protected:
00059         QString m_id;
00060         MicroPackage *m_package;
00061 };
00062 
00063 #endif
00064 

Generated on Tue May 8 17:05:31 2007 for KTechLab by  doxygen 1.5.1