/[ascend]/trunk/ascxx/instanceinterfacedata.h
ViewVC logotype

Contents of /trunk/ascxx/instanceinterfacedata.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2461 - (show annotations) (download) (as text)
Mon Apr 25 09:09:57 2011 UTC (11 years, 2 months ago) by jpye
File MIME type: text/x-chdr
File size: 969 byte(s)
Working on P&W Ex 9.7. Some minor cleanup of other files.
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 */

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22