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
|
#ifndef ASCXX_INSTANCEINTERFACEDATA_H
#define ASCXX_INSTANCEINTERFACEDATA_H
#include "instance.h"
/**
This defines a flexible interface for assigned extra
data to instances for the sake of tricky interface
features.
The first of these is the ability to show whether or
not an instance has been solved. We will have a function
that calls instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_ACTIVE)
when a solver variable is made active, and then
instance.setInterfaceValue(ASCXX_VAR_STATUS,ASCXX_VAR_SOLVED)
once it's solved.
From the interface, python will be able to call
instance.getInterfaceValue(ASCXX_VAR_STATUS) and
will then be able to show an icon accordingly.
@NOTE LEAKY!
FIXME detail why this is leaky? perhaps failing to provide a mechanism for
deletion of these objects?
*/
class InstanceInterfaceData{
private:
friend class Instanc;
InstanceInterfaceData();
InstanceStatus status;
};
#endif /* ASCXX_INSTANCEINTERFACEDATA_H */
|