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.
ktechlab/src/micro/microlibrary.h

56 lines
1.7 KiB

/***************************************************************************
* Copyright (C) 2003-2005 by David Saxton *
* david@bluehaze.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef MICROLIBRARY_H
#define MICROLIBRARY_H
#include "asminfo.h"
#include "microinfo.h"
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqvaluelist.h>
class MicroInfo;
class MicroLibrary;
typedef TQValueList<MicroInfo*> MicroInfoList;
inline MicroLibrary *microLibrary();
/**
@short Stores all the avaiable PICs (info)
@author David Saxton
*/
class MicroLibrary
{
public:
static MicroLibrary * self();
~MicroLibrary();
MicroInfo * const microInfoWithID( TQString id );
void addMicroInfo( MicroInfo *microInfo );
/**
* Returns a list of micro ids with the given properties (OR'ed
* together).
*/
TQStringList microIDs( unsigned asmSet = AsmInfo::AsmSetAll, unsigned gpsimSupport = MicroInfo::AllSupport, unsigned flowCodeSupport = MicroInfo::AllSupport, unsigned microbeSupport = MicroInfo::AllSupport );
private:
MicroLibrary();
static MicroLibrary * m_pSelf;
MicroInfoList m_microInfoList;
friend MicroLibrary *microLibrary();
};
#endif