1 |
#ifndef ASCXX_INSTANCEINTERFACEDATA_H |
2 |
#define ASCXX_INSTANCEINTERFACEDATA_H |
3 |
|
4 |
#include "instance.h" |
5 |
|
6 |
/** |
7 |
This defines a flexible interface for assigned extra |
8 |
data to instances for the sake of tricky interface |
9 |
features. |
10 |
|
11 |
The first of these is the ability to show whether or |
12 |
not an instance has been solved. We will have a function |
13 |
that calls instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_ACTIVE) |
14 |
when a solver variable is made active, and then |
15 |
instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_SOLVED) |
16 |
once it's solved. |
17 |
|
18 |
From the interface, python will be able to call |
19 |
instance.getInterfaceValue(ASCXX_VAR_STATUS) and |
20 |
will then be able to show an icon accordingly. |
21 |
|
22 |
@NOTE LEAKY! |
23 |
FIXME detail why this is leaky? perhaps failing to provide a mechanism for |
24 |
deletion of these objects? |
25 |
*/ |
26 |
class InstanceInterfaceData{ |
27 |
private: |
28 |
friend class Instanc; |
29 |
InstanceInterfaceData(); |
30 |
InstanceStatus status; |
31 |
}; |
32 |
|
33 |
|
34 |
#endif /* ASCXX_INSTANCEINTERFACEDATA_H */ |