blob: 537cf6ccfc16a43c1a9c6f6e307ac21ae1b4c6e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/***************************************************************************
* 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 PICLIBRARY_H
#include "asminfo.h"
#include "microinfo.h"
#include <qstring.h>
#include <qstringlist.h>
#include <qvaluelist.h>
class MicroInfo;
class MicroLibrary;
typedef QValueList<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( QString id );
void addMicroInfo( MicroInfo *microInfo );
/**
* Returns a list of micro ids with the given properties (OR'ed
* together).
*/
QStringList 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
|