| 1 |
|
|---|
| 2 | #ifndef __LIBRARY_H__
|
|---|
| 3 | #define __LIBRARY_H__
|
|---|
| 4 |
|
|---|
| 5 | class Lofig;
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 | class Library {
|
|---|
| 9 | public:
|
|---|
| 10 | enum ModelType { And2=0, Or2, Xor2, ModelTypeSize };
|
|---|
| 11 | public:
|
|---|
| 12 | Library ();
|
|---|
| 13 | static void destroy ();
|
|---|
| 14 | static Lofig* getModel ( unsigned int modelType );
|
|---|
| 15 | private:
|
|---|
| 16 | static Library* _singleton;
|
|---|
| 17 | Lofig* _table [ ModelTypeSize ];
|
|---|
| 18 | private:
|
|---|
| 19 | void _createAnd2 ();
|
|---|
| 20 | void _createOr2 ();
|
|---|
| 21 | void _createXor2 ();
|
|---|
| 22 | Lofig* _getModel ( unsigned int modelType );
|
|---|
| 23 | };
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | #endif // __LIBRARY_H__
|
|---|